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

How to use powershell to open RDP session to RDP farm

HelloI know that with enter-pssession you can open a remote desktop session to a specific host. But when I try to use this to connect to our rds 2012 farm it will generate an error which is logical. I...

View Article


get-openfiles with- not recognized as the name of a cmdlet

Hi I used able to run this script below, no idea after restart my PC and now i get error "get-openfiles : The term 'get-openfiles' is not recognized as the name of a cmdlet, function, script file, or...

View Article


exporting multiple results to txt file

Hay Everyone, I am new to scripting and have decided to go down the path of becoming an expert in PowerShell as I believe it will be advantageous to my career, so please take it easy on me.My question...

View Article

Trying to find the model of the machines

Hello Good Afternoon everyone Im currently upgrading machine at my job i wrote a script that will tell me which machines are offline but i also want it to tell me what model the machine currently is,...

View Article

start-sleep ??

I need to write a script that will do the following. Run 7 days after each reboot.Prompt the user if they want to reboot now. If they answer "no" give them the option to delay 2 hours, 4 hours or 6...

View Article


Get more from the command line with EventSentry SysAdmin Tools

Although Windows has a reasonable set of command line tools, they’ve not changed much in recent years. Microsoft presumably hopes you’ll master PowerShell and build anything else you need for...

View Article

Azure PowerShell Tools 0.8.7 is available

Just a few hours ago, Azure PowerShell Tools version 0.8.7 was released. This release includes enhancements to the existing cmdlets.Read More

View Article

Creating Bulk Users

Hey Everyone,Brand new here in the PowerShell.com community (and to be honest, still pretty new to powershell as a whole) ... and I was hoping that someone could point me in the right direction.I'm...

View Article


Running scripts is disabled on the system

When I running a PowerShell script file as Administrator.  I receive the error "running scripts is disabled on this system".  How can I run the PowerShell script?

View Article


Bulkadd Users to Group - deep level ou

Hi.I am trying to bulk-add users in a txt-file to a group. However both users and group are placed in a sub-ou so when I run my script the group and users cannot be found.Also - I would like the user...

View Article

Pause a Service using pause method in get-service

trying to pause a service I found this in a book called powershell in depth but this just doesn't work.  I can't figure out why.Get-Service -name B* | foreach { $_.Pause() } I get this error "Exception...

View Article

Bulk Replace Description and Info on security groups

Hi.I have several houndreds of groups where description and info fields are empty or false. Therefore, I'm trying to create script that can automate the following for me, however I cannot put it...

View Article

PowerShell: Check if VMware vShield driver is installed and running

The VMware vShield driver is a system driver named vsepflt.It is easy to check the status of this driver by running msinfo32.exe and navigating to “Software Environment\System Drivers”Read More

View Article


The PowerShell File Frontier Part 1

In my day-to-day work, I use a variety of cloud based services to keep a variety of folders synchronized between the different computers I use. But occasionally I need to grab some files from a...

View Article

Need Help with Powershell Script to Copy Folder

I've been testing this powershell script and everything seems to be working fine. The problem is that I would like to copy the folder N6200 with its content to C:\Temp and keep the same folder...

View Article


Updating AD users information from a CSV file.

Hi, I have this Excel file with a list of telephones, names, departments and titles which is distributed and updated by the HR department. I want to use import-csv to update the Telephone, Department...

View Article

Limit to bulk user creation with powershell?

I have a script to create user accounts, move them to OU's, create Home drives, etc.  In all of my testing of the script I would use about 5 accounts and they are all working as expected.  Today, I...

View Article


PowerShell to Automate Azure Storage Account Creation

Why would you want to click through a portal for 30 minutes if you could just create everything programmatically? That's what inspired me to write some code. Getting Powershell setup is easy:Read More

View Article

PowerShell Seen as Key to Azure Automation

Microsoft is on its way toward enabling full automation of Azure tasks via PowerShell workflow scripts.Read More

View Article

Comparing count and combined file sizes of specific file types in target...

Hi all,I have a script that I use to delete files with a certain file extension in a folder and its subfolders. I would like to enhance to the script by counting the total number of files and their...

View Article
Browsing all 6937 articles
Browse latest View live