Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

Help Adding 3 WINS Addresses

I have the following script.  It gives an overload error.  Basically I need to set the WINS address to 3 different IP addresses on all my Servers.  If I just use 2 ip's it works great but then I would...

View Article


Powershell script to move user to new OU

Currently I have a PowerShell script to create new users, modify settings and set a AD Group or disable the user.I receive my input file and at the end of line there is a code at tells the script what...

View Article


New-Item change Get-Date format

I have problem with Get-Date and New-Item:example nr 1:-------------------$today = Get-Dateecho $today----------------------> show date format: 7 kwietnia 2014 10:45:11example nr...

View Article

Modifying properties of Recycle Bin with Powershell

Hi Everyone,I am trying to create a script to modify the properties of the Recycle Bin. For instance on some drives I want to change it so it doesn't go to recycle bin while on other drives I want to...

View Article

accessing remote wmi - security problem

Hi,I am in the role of a client admin. I can access normal parts of a remote wmi using get-WMIobject without any problems. But now I want to access a different namespace with this command: $namespace =...

View Article


Disable services across several servers - found post by Martin, need help :)

Hey EveryoneI'm one of the newbies here and I am trying to disable several services on several servers remotely.I found a post by Martin but I wanted to post here so that I can use 1 forum.Here was the...

View Article

Find Users Without Email Addresses

Hi -I am trying to pull a list of students that are in our AD, but not yet mail-enabled. There are certain criteria I need to filter to obtain the correct students.I'm looking for something like...

View Article

Home drive and looking for blanks

Back again, with a change of direction. Another project has befallen me. Id rather take a ring to Mordor to be honest. LDAP is useful but so unreadable so again i look to powershell.from many thousands...

View Article


Convert JSON data into usable variables

Hello,I am writing a Power shell script to query AWS DynamoDB and retrieve some data (uses the AWS CLI). The two pieces of data I am interested in are "foldername" and "quota" size.I would like to...

View Article


Get only column name of empty table and save it to csv file

Hello,I am new at powershell and need your help.  I can extract data and save it to csv file but I am stuck on how do you get only a column of an empty table and save it to csv with comma dilimited?   

View Article

Oracle ODBC connection using DSN with powershell

 Hi All,I want to establish a Oracle database connection using ODBC DSN. I have written the below code but i am getting error "Data source name not found and no default driver specified". Let me know...

View Article

should I use PS for that task ?

HiI know it may be a lame question but I'm new to PS and I would appreciate if you guys with big experience could advice me if I should even process the following scenario using PS or something...

View Article

line feed or empty line in XAML text output?

Hi again,when I write text output to a XAML textbox like this:$outputtextbox.text = " some text or some more text"and I want the output text to include a line feed, how can I do that? I tried several...

View Article


KB: Description of Windows PowerShell changes in Cumulative Update 1 for...

We just published a new Knowledge Base article that describes the Windows PowerShell issues that are fixed in Cumulative Update 1 (CU1) for Microsoft System Center 2012 R2 Configuration Manager. Other...

View Article

Passing Command-Line Arguments to PowerShell

You can use scripts to automate all of your SQL Server management processes because it allows you to know that the task is done consistently and with a minimum of effort. (You really don't want to use...

View Article


Getting Started With PowerShell for Office 365

I am please to announced the publication of the second edition of this book. It has been updated with the latest Office 365 information and downloads as well as including a number of additional helpful...

View Article

PowerShell Command History Lesson Part 2

In our last lesson we explored some different techniques for capturing PowerShell commands and history. In PowerShell v3 and later we have another option, although it is limited to commands stored in...

View Article


Pop Quiz: Windows Server Active Directory CS Autoenrollment

Applies to the "Configuring Active Directory Certificate Services" objective of Exam 70-640. Read More

View Article

Pop Quiz: Windows Server 2008 R2 Active Directory Defragmentation

Applies to the "Maintaining the Active Directory environment" objective of Exam 70-640.Read More

View Article

Restart server & then email

I am trying to write a script to restart a server and then email when the restart is done.I started with this basic command:  Restart-Computer -ComputerName <string[ ]>,But I can't get it into a...

View Article
Browsing all 6937 articles
Browse latest View live