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

Powershell - New-MailContact - Multiple Aliases

Hey guys, I am trying to disconnect a mailbox and replace it with a mail contact which has multiple aliases. Example: UserA has the email addresses: Primary: UserA@example.com Secondary:...

View Article


Powershell And Antivirus Vault?

Hi,I was trying to check for Automation feasibility to update the antivirus patches automatically using powershell and run an antivirus scan on the server. I wanted to know that is there any way to get...

View Article


Powershell - Adding a variable into a log filename

Morning all, spent too long trawling the Internet already on this so hope you guys can help.I am looking to add passed variables into a log output file so that I can easily identify the relevant log...

View Article

Powershell regestry reporting

Hi chaps not posted in a wee while! I am as ever in need of your powershell knowledge!This has 2 parts to it,Part 1:Enable remote regestry for a list of assets from a .txt file.I'd much rather do it...

View Article

Powershell Copy User Folder

I am trying to copy a users folder to a network location. I am running it remotely using my domain admin account. When I run it I get an error from the source saying that access to the path is denied....

View Article


Remote Registry Module

Here's a little gem posted by mattmcnabb in another thread.  I just liked it so much it needed it's own promotional thread!!http://psremoteregistry.codeplex.com/  

View Article

Reset User Passwords in Bulk to Specific Password

Hello,I was wondering if there was a way to reset multiple user's passwords all to something different.I created a csv file with over 600 users and generated a password for each that I used for their...

View Article

Importing CSV into PS

I was looking at this blog post about importing a CSV into PS.http://www.dannyeckes.com/powershell-bulk-user-import-in-server-2012/I've started my CSV but had a few questions on formatting of the...

View Article


How can i fit this in 1 line and not use a second file?

PowershellGet-Content"c:\test\test.txt"|Where{$_-notmatch"removeme"}|out-file"c:\test\test.txt"I had this bit of code a while ago and was able to remove a single line out of a text file with it but now...

View Article


how Add content

Hi Team,Please advise can i insert the character or add word to my scripts.below is the function.function addbutton {$location = "C:\Users\$env:username\Documents\Mfiles\scripts\test.ps1"$userinputadd...

View Article

Powershell script to set up remote desktop and firewall

I'm trying to make a powershell script to enable remote desktop, change the RDP listening port, and open the windows firewall.My powershell is weak and I'm hoping someone can confirm that I have this...

View Article

Best way to confirm field has changed and is not null before using in set-aduser

I am currently modifying a script setup to create new users in AD to now provide modify ability however the set-aduser I have found is a bit picky as to having non-null values and values that do not...

View Article

ScriptRunner And ISESteroids Bundle

There's a cool bundle deal right now if you buy ScriptRunner you can get some ISESteroids licenses along with it:http://www.scriptrunner.de/en/admin-special/I'm not familiar with ScriptRunner but it...

View Article


Powershel @{}

I am trying to understand what is going on in the following...

View Article

Variables Give Unexpected Results in Exchange Script

I posted this in the Exchange group a couple of days ago, but I only got one reply there so I'm hoping I'm be able to get more input here.This has been driving me crazy for a while now, and I'm...

View Article


Moving files into folders using Powershell and csv

Hey guys hoping i can get some help with this. I spent most of the day on it and nothing seems to work :(I have a csv. In it column A contains full path to the file such...

View Article

Azure PowerShell Modules (MSOnline) missing with Windows 10 Verison/Powershell?

Hello Hello,Quick overview - we run a powershell script that connects to our O365 servers for exchange, etc that creates new users in AD and mailboxes and has been working (written) with Azure...

View Article


How to use Powershell to add all computers in OU to Security Group?

As the subject states, I'd like to know how to add all computers in my Computers group to a Group Policy.Conversely, I'd like to use the same methodology to remove all users in an OU FROM a Group...

View Article

Piping to ForEach in powershell

PowershellGet-ADUser-Filter*-SearchBase'OU=Testing,OU=Users,OU=IT,OU=company,OU=addr,OU=location,DC=corp,DC=Parent,DC=com'-PropertiesSID,Name,mail,proxyaddresses|ForEach($User){Set-ADUser-Identity$_.SI...

View Article

Using msRADIUSFramedIPAddress

We are considering assigning IP addresses to users with remote access.  I found a script on TechNet called Convert-IPv4 but I can't find the associated reverse function for reporting.  Does anyone have...

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>