Reply To: Code formatting in forum posts?
Ok, thanks for the info. One idea that might be worth exploring… is to focus our efforst over at StackOverflow and the PowerShell category? The tools at Stackverflow are very easy to work with and...
View ArticlePowershell ISE does not show Mapped drive in FIle Open
Hi Using PS4. If I open PowerShell ISE as a normal user I can go to File>Open and browse to a mapped drive I have to store my scripts in. If I open PowerShell ISE as Administrator, it only shows...
View ArticleReply To: Powershell ISE does not show Mapped drive in FIle Open
I’m guessing that your normal user account isn’t an admin on the machine and UAC (User Access Control) is enabled. That means when you run the ISE as an admin you’re prompted for the credentials of an...
View ArticleReply To: Powershell ISE does not show Mapped drive in FIle Open
Hi Mike, Thanks – it’s sorted.
View ArticleReply To: Compare two locations, report on differences
Alright, so i’ve decided to take this on with a different approach. “robocopy C:\TEMP\location1 C:\TEMP\location2 /MIR /IS /L /R:3 /W:3 >> C:\TEMP\logs\$date.txt” will give me the output below...
View ArticleReply To: Compare two locations, report on differences
The output from Robocopy is pure text – to turn that into an object, you’d have to parse the text for whatever information you wanted.
View ArticleScripting file replacement across local profiles
Hello, I’ve run into a snag and I hope someone can assist. Here’s the short version… 1. Grab all users on a workstation 2. For each user, check for folder path 3. If the path exists, check for...
View ArticleReply To: Scripting file replacement across local profiles
There are a couple of things that jump out at me as being off. Your Test-Path command is working against a wildcard instead of the $profile variable of your foreach loop, and your Copy-Item command is...
View ArticleInvoke-Command issued to multiple remote computer
I am trying to issue an Invoke-Command simultaneously to several computers. I am reading the names of the computers from a .txt file. My issue is this. Invoke-Command will take multiple computer names...
View ArticleReply To: Scripting file replacement across local profiles
Dave, I appreciate all of the help. Who knew that posting to my two favorite forums, i would get help on both from the same person! My test path command was there because that DB file is the one I...
View ArticleReply To: Scripting file replacement across local profiles
If you aren’t concerned with that secmod.db file, then you can leave that part out. This would work: Get-ChildItem -Path 'C:\Users\*\AppData\Roaming\Mozilla\Firefox\Profiles\*' -Directory |...
View ArticleReply To: Invoke-Command issued to multiple remote computer
You could do something like this: $computers = Get-Content .\computers.txt | ForEach-Object { $_ -split ',' } Invoke-Command -ComputerName $computers -ScriptBlock { Do-Stuff }
View ArticleReply To: Mass create VMs with script
Foreach is AMAZING! It seems you can do just anything with it! I managed to automate changing the default boot order and included it in the script! Now it not only creates multiple VMs with all the...
View ArticleReply To: Compare two locations, report on differences
http://technet.microsoft.com/en-us/magazine/2008.09.windowspowershell.aspx#id0080030 Found this old article by you Don. I’ll give it a shot and let you know how it goes.
View ArticleImport-Alias in $profile
Hi, I’m trying to load my aliases into a session by using the Import-Alias cmdlet using the command: Import-Alias .\Alias.txt which has the following alias: epp,”C:\Program Files\Just Great...
View ArticleReply To: Import-Alias in $profile
First question – is the path to the file ‘C:\Program Files\Just Great Software\EditPad Lite 7\EditPadLite7.exe’ correct. Try running the file directly in PowerShell to test you have the correct path....
View ArticleReply To: Import-Alias in $profile
Feel so stupid. The path was to EditPad Lite (which I’d deleted as I’d upgraded and deleted) and I’m using EditPad Pro (different path). Stupid, stupid, stupid – spent 2 hours wondering why this...
View ArticleList AD Properties of a user
Hi, I’m learning PowerShell and last week I ran a cmdlet that gave me the LDAP properties of the computer object, the output of which was: TypeName: Microsoft.ActiveDirectory.Management.ADUser Name...
View ArticleReply To: List AD Properties of a user
Looks like you’re using the Microsoft ActiveDirectory module. For computers you probably ran Get-ADComputer http://technet.microsoft.com/en-us/library/ee617192.aspx For users you need Get-AdUser....
View ArticleReply To: List AD Properties of a user
Hi Richard, I am using the AD module, although I think I may have used a Get-WMIObject for this. Example 3 shows a list of values for a given identity. The computers list I ran just showed the list of...
View Article