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

make things I create permanent

how can I make things I create like aliases or functions permanent?

View Article


terms of execution

need to know the order from first to last in terms of execution for file,application,function,alias,script,and cmdlet.

View Article


Capturing CPU, RAM and Disk Utilization information

Hi,I would like to capture CPU, RAM and Disk utilization on a couple of servers throughout the day. I am thinking of writing this to a CSV file each server. At the end of the month I'd like to combine...

View Article

Disabling PowerShell

Q: I want to disable PowerShell, because I'm concerned about the scope of its capabilities. Should I disable it?Read More

View Article

Use Execution Policies to Control What PowerShell Scripts Can Be Run

Q: Does Windows include a security mechanism that controls what PowerShell scripts are allowed to run on a Windows box?Read More

View Article


Creating Self Signed Certificates with PowerShell

Prior to PowerShell 4.0, you needed to download MakeCert.exe or another utility to create self signed certificates. Obtaining MakeCert involved jumping through a number of hoops. When I was writing...

View Article

VMware Fling tosses admins into the automation pool

If you haven't already, check out the new VMware Fling called PowerActions. This Fling marries the vSphere Web Client with PowerShell to let administrators launch PowerShell consoles and run scripts in...

View Article

Restart-Computer - Email Results

Hello All,I am looking into some help modifying a script I found on this site. I really need to combine two scripts. I am looking to query active directory for a list of computers that are "Like"...

View Article


Requires 2 args. If one args then I need an error.

Hi,Big newbie and my question isn't for a class but for work.  This is my 3rd day at it and having difficulties.  Not looking for an answer but direction as I would like to learn PowerShell and...

View Article


How to skip the Excel Error and continues with Powershell script

Hi ..I want the Powershell script code to check whether the set of Excel files inside a folder contains Excel VBA Macros or not.And Secondly it should not stop executing even if there happens an error...

View Article

Powershell script to open a notepad from localsystem and open run the...

Hi..I have an predefined notepad in local system with 10 lines of server names in it.I need to know how to design powershell script to open the local host notepad and executes line by line.once the...

View Article

Test Authentication to Windows Servers

I have been tasked to write a powershell script to test the authentication to a number of our windows server with a particular username and password and output the results. Has anyone done this before...

View Article

Chrome Plugin Always Allow

We have an issue.  We use Chrome and it's built in PDF Viewer allows users to fill out county forms but on save all the data is lost.  We have PDF-Xchange Edit installed and I know how to disable the...

View Article


Delete files timestamp (older than)

if I have a TXT with the folder name and date to eliminate?folder.txtFolderA,60FolderB,40How do I create a script to delete the files located in these folders and the detailed date? Thanks

View Article

Using environment variable to call an exe

Hello,I'm trying to call a command in PowerShell using an environment variable.  Using cmd, I would call the exe using the following command %userprofile%\somefolder\random.exe.  When I use this...

View Article


Updating ActiveDirectory employeenumber by using email address

I want to update employeenumber to Active Directory by using emailAddress.  With SamAccountName I succeeded, but the data output from personnel system provides only full name, email and...

View Article

number string sort

read text file data:1,26586,01,789,11,5689,02,5895,25682,5899,5689and then sort the reslut:1,789,11,5689,01,26586,02,5895,25682,5899,5689i use get-content file txt | sort-object -uniquethe reslut is...

View Article


create multiple directories

Hello all,i have this simple four lines script: $rootdir = "D:\" foreach ($folder in @("folder1", "folder2", "folder3")) {  if (-not (test-path -path '$rootdir\$folder')){     New-Item $folder -type...

View Article

Moving Used based on Last Name

I am wanting to move my users to the correct OU's based on last name.  I currently have this script and I'm running into an issue.  When I run GetEnumerator for the last name it does all the letters....

View Article

Replace string using wildcard in a file.

Hello,Can PS replace string using wildcard in a file (xml file)? (replace newValue with oldValue) The original file is:<user oldValue="a1@aa.bb.cc.com" newValue=""></user><user...

View Article
Browsing all 6937 articles
Browse latest View live