Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

search and filter OU structure

I have a powershell script that searches an OU structure in Active Directory and adds users to a specific group in they are present in the OU or Sub OU's.Looking something like this: Get-ADComputer...

View Article


PowerShell unable to output to console

I can output to a file, but as soon as I try and output to console it just doesn't show any output.Powershell$word=Read-Host"Word to...

View Article


Add AD ProxyAddresses for Bulk Current Users

Hello,I need assistance reworking a script. I'm working with Sigkill's PowerShell script to add proxyAddresses to a bulk of users, along with the email field.Basically we are trying to important a lot...

View Article

Powershell - Eject USB device

As a bit of a challenge i was looking for the correct powershell code to eject a USB device.Well this is it assuming your volume label is...

View Article

Get Mobile Phone Number from AD Contact

Hello,I am trying to pull the mobile phone numbers from a group of contacts in AD with powershell, but seem to be running into a wall. Get-adobject doesn't seem to have the mobile phone parameter as a...

View Article


Looking to learn Powershell

I am one of two IT personnel for the small town hospital that I work at and I want to learn Powershell. I know very little about it, but learn best by simply doing something.The thing that interests me...

View Article

PowerShell: Archiving User Profiles

Trying to archive a user profile from their local machine to network storage, but I receive the following error message while the archive process works on the user's Documents folder:Exception calling...

View Article

How do you run as the logged in user?

Good afternoon!I just spent some time Googling how to run a powershell command as the logged in user, but it seems most say it's not possible, and others are taking it way too far. Surly there must be...

View Article


Powershell archiving script

I found the below powershell script on "Hey, Scripting Guy! Blog" it is a great arching script. I modified it to meet my needs of a log file being created and sending an email. However i discovered...

View Article


PowerShell script to read metadata info from pictures

Hi Guys,I'm new to powershell scripts. I need a help with the below...

View Article

HELP! Powershell!

How to Enable Remote Desktop on a client computer, remotely, using powershell from another computer (Windows 7)? If it helps, we have a 2003 DC. I have Administrative access to Local client PC.All...

View Article

Powershell SSH client

Has finally arrived.https://github.com/PowerShell/Win32-OpenSSH

View Article

Powershell - Using regular expressions to find and replace lines in test file

Currently im trying to create a script that will open a file and if any lines begin with the text i supply, it will delete the entire line. I keep getting convoluted information on escape characters...

View Article


Checking For RDP being disabled in a Citrix Farm

I'm trying to combine the (Citrix) Get-XAServer cmdlet with a Windows registry Get-ItemProperty cmdlet.1. I can easily check if Citrix Logons are enabled or disabled for all Citrix Servers in a Farm...

View Article

WMICLASS.Create() not running remote install

I have the below code which spawns a process to remote install IE, but it does not seem to complete. No log file is found anywhere, even though I specify a log file to dump into C:\Any...

View Article


Invoke x86 Shell Session

How could I use invoke-command or a similar cmdlet to start a x86 session and then pass it a script to execute in a script block? I'm using a script that allows me to use the com object for the Active...

View Article

Setting up windows backup for Windows Server 2012 standard using powershell

I have never used PowerShell before and I am trying to set up a backup schedule in out 2012 server. Here is the line I have used to create it,...

View Article


Powershell hang when attempting to add permissions to hidden share

Hi I believe what I am attempting to do is very easy but for some reason it's not working. I am assisting in a task to add a new group as our file sharing group to our file shares.I have been able to...

View Article

Powershell Loop question

All,   I am trying to get a script to loop after sleeping for 10 min..I've got most of the script to work EXCEPT for starting over and running again.... here is what I have:Do {$computers = "Xenapp02",...

View Article

Working with DistinguishedNames

Hello,I have a script that I am using to manage a large list of stale user accounts. I have the DN for each of the targeted accounts. I have been unable to figure out how to pass this through my...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>