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

Image may be NSFW.
Clik here to view.

bulk creation of hyper-v vms encounters errors

Hello Guysthe problem is self-explanatory so i only put the screen shot here:     import-csv D:\2.csv |ForEach-Object {...

View Article


Tech Tuesday: Using PowerShell to Create SmartConnect Event Log

In this column, we are going to use PowerShell to resolve a couple of issues I’ve seen. The first one is an error you may get when running an integration. Read More

View Article


Automating SharePoint WSP files deployment with Powershell

This Powershell Script helps checking if a feature is installedRead More

View Article

How To Manage Shortcuts with PowerShell

Save time and look like a hero by easily fixing broken shortcuts.Read More 

View Article

Working with PowerShell DSC for Linux, part 2

In the first part of this series, we covered the basis–how to get Desired State Configuration to do what the name promises: keep desired state consistent. Now that we are sure we will get the expected...

View Article


Working with PowerShell DSC for Linux, part 3

Linux is a system that stores configuration in text files. As a result, nxFile should be considered one of two most powerful resources offered in the CTP release. With the option to create and modify...

View Article

Working with PowerShell DSC for Linux, part 4

CTP of Linux DSC that was released last year has only five resources: nxService, nxFile, nxUser, nxGroup, and nxScript. Things like package management, network configuration, firewall settings, jobs...

View Article

Working with PowerShell DSC for Linux, part 5

Managing Linux can become a challenge if you don’t have some way of distributing credentials. There are several options: joining Active Directory domain and using shared credentials for both Linux and...

View Article


How-to start and stop Azure VMs via PowerShell

With PowerShell it is fast and convenient to manage my development and test servers running on Windows Azure. It is just easier to use command line tools than logging into the Azure management portal...

View Article


Helper Function to Create a PowerShell DSC Composite Resource

Although I have not blogged about PowerShell Desired State Configuration (DSC) very much, it has been my sole focus for the last several months. I have been doing Introduction to PowerShell DSC talks...

View Article

NEW: PowerShell ISE Module Browser

Microsoft’s new extension, Module Browser for PowerShell ISE, allows you to download PowerShell modules from the online repository PowerShell Gallery. In addition, you can manage your locally installed...

View Article

Image may be NSFW.
Clik here to view.

My script takes over an hour to run !?

Hi all,I'm new to powershell and have finally finished my first script to get all the groups of 2 OU's and some extra groups that I need to report on and get all the users - and output into the format...

View Article

Export-CSV centers the column that is being sorted....

I specifically set the variable to align right in the code. It outputs correctly on the screen, but not in the CSV file. How ca i fix it during my export?# Formatted in the ObjectIf($FreeSpace -ge 0)...

View Article


Image may be NSFW.
Clik here to view.

some properties not available on variables with more that one object

   $nic1 = gwmi win32_networkadapterconfiguration -filter " ipenabled = 'true' "# one object (NIC) is returened $nic1.-------> all needed properties (like ip address) are available  $NICs = gwmi...

View Article

Parse a log file for specific string

I have a log file that when it receives a specific error code I would like to be notified so that I don't have to keep checking it randomly through out the day.  The log file is cleared when the job...

View Article


FTP Download - Multiple Files

I am trying to download multiple files from an FTP site. I have a script for single file download, but I'm not sure how to handle multiple file download.  Any suggestions?I've searched the Internet and...

View Article

Have script get my attention and stay open

As part of my job duties, I need to wait for several PC's to be online and when they are, connect and do something to them.  So, instead of manually periodically checking to see if they are online, I...

View Article


Comparing string in text file to folder path

I have a text file which has directory locations, one directory location per line.What I am trying to do is, loop a set of directories and check if their FullName exists in the said text file.I tried...

View Article

Strings Strings Strings

I have to add hundreds of users to a new AD Security Group.  I have a script that will add them but my script only works if I have the samAccount (login ID).      Example:   PublicJQ     Now, I have a...

View Article

Easy way to Configure your Powershell Profile

Powershell was most widely used in all the latest version of the windows operating system. There are so many uses of the powershell commands and powershell scripting that make you simplify the work...

View Article
Browsing all 6937 articles
Browse latest View live