Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

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 Article


Powershell 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 Article


Reply 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 Article

Reply To: Powershell ISE does not show Mapped drive in FIle Open

Hi Mike, Thanks – it’s sorted.

View Article

Reply 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 Article


Reply 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 Article

Scripting 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 Article

Reply 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 Article


Invoke-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 Article


Reply 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 Article

Reply 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 Article

Reply 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 Article

Reply 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 Article


Reply 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 Article

Import-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 Article


Reply 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 Article

Reply 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 Article


List 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 Article

Reply 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 Article

Reply 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
Browsing all 13067 articles
Browse latest View live