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

Install Software Remotely over Either

I am automating the configuration of my 2012 servers and I need to figure out how to install the applications using remoting.  I was able to get them to run using PowerShell locally, I think...

View Article


upload CSV file to FreePBX server

Hi guys,I'm trying to create a script that will take a csv file, and upload it to my FreePBX server to create/edit an extension. Here's what I have so far. I seem to be getting past the login page and...

View Article


Before PowerShell

Before I started using PowerShell, my forhead was only 1 inch tall...

View Article

Pass username fro MySQL query into variable with field name meta data

Hi All,I am new Powershell and MySQL and having some trouble with passing a username, returned by a query to a MySQL server, into a variable without the meta data of the field name being copied...

View Article

Hyper-V and the Cloneable Domain Controller

Sounds funny, but believe it or not, it's real. Since its release in Windows Server 2012, Hyper-V supports cloning of Domain Controller VMs. Cloning may seem an incredibly naughty task for a domain...

View Article


PowerShell Deployment to SharePoint Online

In my last blog post about DevOps for SharePoint Online the process I presented relied a lot upon scripted deployment to SharePoint Online (O365). I wanted to expand upon that a little and explain in a...

View Article

Resting passwords on remote domain with native commands

Let start easy, I hope.  How can I make this command work in PowerShell: net user jhans /DOMAIN | FIND /I "Account active"net user jans /DOMAIN /ACTIVE:yes  I have tried 20 different way, no luck.

View Article

distinguish hours in a day and perform logic

I have a scenario where in the log file which has 24 hours of data. I should be able to pic hour by hour (for all 24 hours )and do some logic. 20:55:19 (hour:minutes:seconds) is the hourly format in...

View Article


get-adcomputer permission

Hi, What is the minimum permission user  need to run this command against DC ?Thanks 

View Article


How to get unique line containing keywords from a notepad file

2476        191.196.140.42        AUTH         Di7540h     NE571 2476        191.196.140.42        AUTH        An16         8907E5 2600        200.143.41.214        AUTH         fgJ7n8      mboip09...

View Article

Rename multile lines in files

Hello,  i have a script that should rename several lines in multiple files in a directory.Here is the script:$stringtofind = 'a1a1a1'$replacewith = 'a2a2a2'$stringtofind1 = 'b1b1b1'$replacewith1 =...

View Article

select checkbox in webpage

hi, i want to select a checkbox in a website webpage through automation ps script to download files. by default on webpage checkbox is selected but i want to first uncheck check box then select...

View Article

read a xml file with namespace

Hi,I just try to read an exported OfficeUI file (Word.exportedUI):$MSNamespace= @{mso=http://schemas.microsoft.com/office/2009/07/customui} select-Xml -Path $XMLFile -XPath "//mso:cmd" -Namespace...

View Article


implicit remoting remove-inboxrule

Creating a script that will remove users and their homefolders after a certain period, but before deleting they will be disabled and the forwarders to an external email address must be removed.Before...

View Article

Image may be NSFW.
Clik here to view.

Power-shell remote connection : Inconsistent behaviour

I have a particular situation in some pc's in our domain. Sometimes, When I tries to connect to a remote pc using any of the domain user accounts, I gets the "Access denied" exception. The following is...

View Article


split value of column and write on new line

I have one csv file with different headers and i whant export one colunn for build a new CSVWhen my script runs, my export gives me the following...

View Article

Error handeling with Remove-QADMemberOf

Hello all,I have security on me to limit the users who have local admin access on desktop PC's.  I am at the point where I am trying to remove user account from nested Global Groups that are part of...

View Article


question about New-WebServiceProxy over https in powershell 3.x

Good Day!Can someone please help me find an answer on 'How to get the response from the Remedy ARS webservice over https in powershell 3.x' ?One of the ways I've tried is to have the webservice object...

View Article

Exchange 2010 NDR

I am getting NDR due to contact being synced with my organization that are not compatible with Exchange 2010.  I figured out that it is a version mismatch.  So my idea was to write a script and run it...

View Article

Script hangs on printer creation. $Printer.put()

I have a working powershell script for creating printers on Windows 7 workstations. I'm trying to update the same script by adding a GUI that will allow me to select and create multiple printers. My...

View Article
Browsing all 6937 articles
Browse latest View live