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

How to get Parm of of session

How can I get $RC out of my session--------------------------------------------------------------------------------------winrm s winrm/config/client '@{TrustedHosts="xxxxx"}'$session = New-PSSession...

View Article


Change samAccountName to FirstName.LastName

HelloI would like a powershell script to change the samaccountname as stated in the title but I would like to restrict it to an OU.Any ideas?Thanks

View Article


Powershell to export some security events to a csv file

I am trying to do some powershell scripting, finally, after putting things off for way too long. I am looking to parse security logs and output just the timestamp, username, domain, and originating IP...

View Article

Powershell web bot project

http://masterrex.com/?p=64 I saw this and thought it might give every one here some ideas. 

View Article

Get-ADComputer Regular Expression search PowerShell

I'm trying to find a way I can search AD for computers, where the last 6 characters match. The reason is we switched our naming standard and no one deleted the old computer name from AD. I'm thinking...

View Article


Powershell - Find folder names at a certain depth

I am trying to figure out a way to grab the folder names found at a certain depth from a base folder. I have a base directory (starting point) "C:\Program Files\Microsoft IPTV Services\crashlog" and...

View Article

Getting list of all conditions set for my dynamic distribution lists

At my new employer, we use Exchange 2010.  However, the custom attributes of each AD user are all over the place.  I am trying to clean up the custom attributes so that they make more sense and are...

View Article

Find AD users who have Logonworkstation restrictions

I am looking for a way with powershell to query all the AD users to find out which users actually have logonworkstation restrictions.I'd like to be able to get a list of just those users. or even...

View Article


Is there anything I can do to make this more efficient

As a self taught (read: grab snippets and slap them together for a specific task and then never go back to a script) scripter, I'm aware that there are some holes in my knowledge. Do any of y'all have...

View Article


Free Download: CMD to PowerShell Guide for AD

This was linked in the Powershell for AD MVA today, via Ashley McGlone: Link"While studying the new 2012 cmdlets in preparation for conference talks last summer I created a quick cheat sheet for...

View Article

Exchange 2013 Powershell command for Message tracking including IP of sender

Hello everyone!Would any of you happen to have a get-messagetrackinglog command that includes the sending servers IP address that you could share? I currently use something like this:...

View Article

Split A Large CSV files into Multiple CSV's powershell

I am a novice at powershell but this looks to be the best tool to do this task. have a csv file that looks like...

View Article

Powershell mail script

Hello, I am creating a set of scripts and I like to send the results directly to our mail box. However, when i am running the script on my Windows 7 PC it works. But when I run it on a Windows Server...

View Article


Run login script to modify registry

Despite the fact I'm trying to move away from it several of my users insist on using the horrible Mozilla Thunderbird to get their IMAP mail from Google.While I don't have a problem with using the...

View Article

Powershell Script for Backups

What I need:1. I need a way to have the script look for a drive with a file like Backupdrive.config on the root. If one is not found echo "Backup Drive Not Found" For about 10 sec then end.    2. Once...

View Article


help with Add-DHCP commandlet

Hi,I'm very new to Powershell and am trying to do a .csv import of  MAC addresses to our Windows 2012 DHCP server.I've managed to get it to import the MAC address with the Allow filterUsing:Import-Csv...

View Article

Powershell ADSI WinNT Error Handling

I am writing a script that will take a list of computers and change the local administrator password. I'll eventually have it log success and failure messages for each computer, but to do that I have...

View Article


Corporate PowerShell Policy

I'm in the process of disigning a "Corporate PowerShellFramework" for my company which will outline and define our corporate policies surrounding PowerShell as well as best scripting practices and so...

View Article

Powershell to remove SUSID in registry

We use WSUS to update all windows update on all PCs .All PCs have powershell 3.0 with PSremoting enabled via GPO.I need to remove all SUSid for each PC. I tried to run this script using invoke-command...

View Article

copy group policy link from source ou to target ous (import csv)

Powershell#copy gpo links from source OUs to target...

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>