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

Promote a Domain Controller with Windows PowerShell

Windows Server 2012 and newer servers can be promoted to be a domain controller using Windows PowerShell. If you’re running your domain controllers on the Server Core variant of Windows Server, or you...

View Article


NFS Export issues with Powershell Toolkit

Hello All, I have a WFA workflow to do an NFS export to list a list of Unix hosts.when i check on the filer the export entry are coming in the /etc/exports file and also in the memory, but unix hosts...

View Article


Help with functions and general advice

I'm not totally new to powershell, it's just that my scripts have been getting more complex and some concepts elude me.  My scripts seem overly long because I use a lot of functions with repeatable...

View Article

Problem with invoking command line from PowerShell

Hello can someone please help me with the following problemif I run he command line from DOS"C:\Program Files\Java\jdk1.7.0_67\bin\jarsigner.exe" "C:\TestFiles\TestJar6.jar"...

View Article

Changing the Windows (7) Theme via Powershell

I've been researching ways to change the Windows Theme (Windows 7 PC) back to Windows Classic (from the default "Aero" theme) via Powershell.  Found several, none of which worked.  The one that seemed...

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

WMIC Process call create - Change system32 directory

Hi, I have a .bat file sitting on the desktop of a remote computer.  I sign on to the remote and dbl-click the .bat file and it exeuctes on the remote.  This is what is in the .bat file.Contents of...

View Article

convert wmi query to powershell one liner

wmic MemoryChip get BankLabel, Capacity, MemoryType, TypeDetail, Speed

View Article


Upload File using Invoke-WebRequest

How do I upload a file using Invoke-WebRequest? I am able to logon to the HTTPS site using a certificate but how to I designate the file I want to upload?

View Article


Group Membership being truncated.

I have put together a little script that will list all users in an OU as well as other info Get-ADUser -Filter *  -SearchBase  "ou=Users,ou=XX,ou=XX,DC=XX,dc=XX" -Properties GivenName,...

View Article

How to start an application remotely for a user that is logged onto the...

I feel like I have tried everything to get this to work but have had no success.  I need to be able to kill a process (no problem) and then start it up again.  I need to do this remotely while a user...

View Article

Assigning Group Memberships

I am looking for a way to revamp the way we assign group memberships thru our user creation/update script.  Currently we only assign one group to the user at account creation.  My thought is if...

View Article

Exporting from Active Directory (SBS) list of active and disabled domain...

Hi everyone, As you'll see I'm pretty much "fresh" in PowerShell. I've found this Ed Wilson's script named "FindDisabledUserAccounts.ps1" and it works perfectly on my Small Busyness Server with...

View Article


Creating a Powershell Script Using InstallShield Switches

Hi,I'm trying to convert a batch file that's using InstallShield/MSI switches into a Powershell script and not having any success.Here's an example of the batch file:SET workdir=H:\Apps and...

View Article

Connections and add pssnapins in functions, scope?

I thought I was being so smart, I decided to create a couple of functions and add them to my admin module so I could connect to my vCenter server so I could use my PowerCLI and to my Domain Controller...

View Article


Can't get processes from Windows 7 client.

I have started working my way through Month of Lunches and came up with a minor problem.  I have set up a private network in VMware with two Server 2008 R2 Enterprise servers and one Windows 7 client....

View Article

Powershell and Excel

Hello to all,Before I begin I would like to say that I am not a scripter (Powershell or other). I am here because of a project deadline and require the help of a skilled Powershell programmer who is...

View Article


Get-Date Question

I've been playing around with Get-Date and I'm wondering how to do the following.I need to get today's date and then in exactly 7 days execute an .EXE.   This .EXE is a reboot script so I need my...

View Article

AD group members

Hi all I am trying to create a script that will do 2 things:1. Prompt the user running it for an AD group name.2. extract the members of the group to a csv. and name it group.txt, leaving it in the...

View Article

Image may be NSFW.
Clik here to view.

VM Tools Status Report in HTML Format for Multiple Vcenter

Hi Team I have created script for vm tools status however the report format is not getting properly,., I can get the title for the first vcenter not the second name in the report I need the report like...

View Article
Browsing all 6937 articles
Browse latest View live