import printer share name from csv and install printer to client
So we want to take a CSV file with printer share names and install them to a client. I have some of the script but I have no idea how to import from the csv and create a printer for each object. The...
View ArticleDisable unnecessary network features as Internet Protocol Version 6
Hello,I want to disable "File and Printer Sharing for Microsoft Networks", "Internet Protocol Version 6", "Client for Microsoft Networks", ... on Networking tab or "Allow other network users to connect...
View ArticleNew version of the Windows Azure PowerShell
Few days ago the new version (0.6.17) of the Windows Azure PowerShell has been released. The Windows Azure PowerShell provides IT Pros and developers with Windows PowerShell cmdlets for building,...
View Articlewrite-host
Hi I'm using the following script$a = Get-Content "c:\servers.txt"foreach ($i in $a) {$files= get-content "c:\test.txt"foreach ($file in $files){Copy-Item $file -Destination \\$i\C$\ -force}} to copy...
View ArticleManage Hyper-V with PowerShell
If you’ve been reading my posts, you should realize I am a huge proponent of Windows PowerShell. The number one attraction for me, is that if I can run a command to process a single thing, like a file,...
View Articleempty OU's
I've searched high and low for this script and can't locate any that helps me to get a report on empty OUs in my environment.I tried to construct a command but no cigar. the below is what I was...
View Articlemoving file to user fld after changing AD
Hi,I have PCs under XP and 7. They are part of a domain. the user folder on the PC will not be the same once I migrate the PCs to an AD (under 2012). How can I move all files to the new user folder...
View Articlescript to report users that haven't changed pwd in X days
hey!Another report I'm trying to construct....We are cleaning up our AD and I'm trying to figure out which users haven't changed their pwd in X amount of days. any help is appreciated! Thanks in advance.
View ArticleDelivery options
Hii i have exchange 2010 i need add user send on behalf with power shell. can you help me? thnx.
View ArticleTransaction log size report
Hello everyone.I have a script that runs to get transaction log size. It runs, produces the output file.However when it runs it does produce errors in the ISE.I will include the script and then the...
View ArticleAdd-Printer and Add-PrinterDriver not in v2?
I am currently working with Powershell v2 on a Windows 7 system. Wanted to learn how to add printer drivers and printers, found information online about Add-Printer and Add-PrinterDriver from...
View Articlesql and get-command output
when I type ps c:> help SQL > c:\sqlcommandlist.txtget-command - name *sql* > c:\sqllist.txtI get two different outputs ...Can someone educate me about this...
View ArticleBulk AD Account creation script
Hi, I'm trying to get a script that creates Active Directory users in bulk from a .csv file to work. Here is what I have so far. I'm getting an unexpected token error. I have changed the domain in line...
View ArticleLast Time Domain Admins Changed Password
My manager just asked me for a report for all domain admins in a group called Domain Admins. The report should include when the last time all members of the group changed their password. I am new to...
View ArticleSetting a maximum depth level on -recurse
Hello All,Is there a simply way to set a maximum number of levels -resurse will go to down a directory structure i.e. say 5 levels when doing something like thisget-childitem c:\ -filter "*.exe"...
View ArticleExporting Mailbox Permissions
Hi all,In our Exchange 2007 environment, I have this Powershell script which outputs mailboxes, which users have access to them and the type of access, such as Full Access, Delete Items etc. into a...
View ArticleActive Directory Script fails
I'm trying to write a script that adds a user to Active Directory. I have been tweaking it a lot but I haven't been able to get it to work correctly. When I run the commands manually in Powershell I...
View Articlepower shell script to install app-v application
Hi all, I am a begineer to power shell. I wanted to know how can install app-v application using power shell scripting.I wanted help from you guys to this question.Thanks in advance
View ArticleSharePoint, PowerShell and Network Latency
I was listening to Todd Klindt and Shane Young at TechEd North America this year (the link goes to the recording of the session). The session was on the basics of SharePoint 2013 administration....
View Article'Casting' an Object Spell in PowerShell
One handy PowerShell trick is to tell the engine to treat something as a particular type of object.Read More
View Article