-
Hello, What can I do if I want to get the same profile when I remote into systems using PowerShell? I want to be able to list the modules and snappins available, change the console color, etc. I have tried using some info I googled for about configuring a profile on a remote system, but that fails, I...
-
Don, Thanks yet again for the great answer, it seems like alot of people had workarounds where they were doing something to get a specific profile on a remote system. Now I know the real answer :) Is it possible to at least get a different console color, font, or so forth to make it easy to identify...
-
I am trying to find a way to modify the script below or if anyone has a script that will delete home folders for a list of users if the user names are specified in a text or csv file, can anyone help? I would like to delete the user accounts as well, but the home folders is fine for now. I want to do...
-
Don, So I've read a fair amount since this post and I bought your last book, but I'm looking at the new "lunches series", and I think I'm still a beginner, but do I need to know powershell 1 or 2 before ordering the powershell 3 book series? I've read about 20 contradicting...
-
Hello, I now know the best methods of remoting thanks to Don & the folks here. But I have to use the Quest shell as we utilize their Active Role solution and I need to write a script that runs when something is done to users accounts through that system. I know how to set it up and what commands...
-
I tried to do that, but when I run the get-pssnapin - registered the exchange tools don't come back as registered. Then I've read it's not "supported" to add the snapin for the exchange tools in another shell aside from the exchange shell, so you should use a remote connection,...
-
Thanks, so the tools are installed on the system I need to run this script from, and I got this to work, so is this not recommended either? c:\program files\Microsoft\Exchange\V14\bin\RemoteExchange.ps1 ; connect-ExchangeServer - Auto Is that OK or do I need to do the Remote session noted in your reply...
-
I need to be able to associate mount points (Get-WmiObject -Class Win32_MountPoint) with the physical drive on which it resides. Scenario: I have physical disks (SAN LUNs) mounted as folders on an E: drive (also a SAN LUN) of a server. I need to be able to, via a PowerShell script, associate the "folder"...
-
I have written the following script but each fix I do breaks 2 other things. For instance I am loading variable data to an .xlsx and it errored that the object was not a string. So I added .ToString method and it now says my passed variable ($computer) loaded using the Get-Content cmdlet is null! Prior...
Posted to
Ask Don and Jeff
(Forum)
by
Oseis
on
08-21-2012
Filed under: PS Remoting, WMI, Remote PowerShell, Powershell, string formatting, script, $env:, Excel, powershell excel
-
I am new to powershell and i am trying to write a simple script that will reboot a list of machines (XP, and 7) and input the results of the reboots to a text file. I created the below script that reboots the machine and creates the output file, but when I open the file I do not see any results in it...