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

PowerShell DSC Comes to Microsoft Azure

For the past several years Microsoft has been building PowerShell hooks into every product that it produces. PowerShell is a powerful scripting language for sure, and as an IT Pro, if you're not...

View Article


Send on behalf

Can I send an SMTP message from a Powershell script that performs a "send on behalf" operation?The Send-Mailmessage Cmdlet doesn't seem to offer that capability (using the "from" option tries a "send...

View Article


Script to test-connection and check if computer object exists in AD

Hello guys, I've list of 3600 machines and i've to test connectivity and existence in AD as i'm a beginner in PS , I'd like to request some help. I have already script to ping machines which are...

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

Cannot access another machine Folder Disk Space

Am running my below comand line in my script.ps1 - to find the disk space of the remote machines (listed in servers.txt in my current folder)Get-WmiObject Win32_LogicalDisk -filter "DriveType=3"...

View Article


ad user export wont return all values of select-object

Hello,this is my code:$When = ((Get-Date).AddDays(-7)).DateGet-ADUser -Filter {whenCreated -ge $When} -Properties * whenCreated | Select-Object givenName, sn, SamAccountName, mail | Export-csv -path...

View Article

Running a exe a set number of times...

Hello,Have been trying to find a way to get powershell to start a program (exe) a defined number of times. Sometimes I want to run 1 or 2 instances, sometimes over 20. Is there a way to define this...

View Article

New Scripts list remove members

good afternoon Working for a private bank and need to develop a script that do the following. I'm starting to develop in Power Shell script. I need the script to check my machines in the network...

View Article


Query Azure Storage with PowerShell but without the SDK or Cmdlets

I had a need to query Azure Storage via PowerShell, but I was not guaranteed that the machines I'd be running from would have either the Azure SDK or the Azure PowerShell Cmdlets installed.The script...

View Article


Zipping a single file with PowerShell

I recently needed to quickly create a PowerShell script that would create a Zip file from a specified input file.Read More

View Article

Automating VM Configuration using PowerShell DSC Extension

In April, at the //build/ conference, Jeffrey Snover demonstrated provisioning an Azure VM and configuring it using PowerShell DSC (Desired State Configuration) and Custom Script extension. Azure VM...

View Article

Press PowerShell Pause to Continue

Everyone once in a while I come across a PowerShell script that behaves like an old-fashioned batch file. Not that there’s anything wrong with that, but often these types of scripts put in a pause at...

View Article

Location based printing script

Normal 0 false false false false EN-US X-NONE X-NONE Im a new VMware View Admin and Im having an issue with location based printing. It is not consistently working and instead of spinning my wheels on...

View Article


PowerShell and WPF: Radio Button

I talked about working with CheckBoxes in my previous article and mentioned briefly how you can have them behave like a Radio button, but in the end, nothing beats the actual thing no matter how close...

View Article

PowerShell and WPF: Checkboxes

Continuing on with my series on PowerShell and WPF, I am going to talk about using checkboxes in a form.Read More

View Article


PowerShell and WPF: Textbox

The next control in my series on working with WPF using PowerShell is Textboxes. The textbox control is as it sounds, a box that can hold text. You can use it both as a input box as well as an output...

View Article

Unrolling Email Address Policy

I hope this makes sense...I am working on a script to allow some of our OU managers to update CustomAttribute2 for their users based on some pre-defined settings. We use this value to set an Email...

View Article


sunglasses outlet elierf fxg kked

01616.cn (01616. Come sets of clothes sent to the cabin, and so these people cloths, just bring people into the cabin once again, began to count the spoils of the cabin, a woman who was not a big clear...

View Article

Check & report time on switch and synchronize with other devices

Hi,I would like  to ensure the time on our servers are correct.Please suggest the method that you think is the best fit.we have to make sure that:1) The time provided by our core switch is matching...

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
Browsing all 8411 articles
Browse latest View live