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

Update SQL Database Table from Excel Spread Sheet or CSV file

HII'm trying to put together a script to update a SQL table from data in an excel spread sheet or CSV file but the only examples that I was able to find on the net will create a new table from the info...

View Article


Powershell ISE Hanging

(I don't know if this is the correct location for this message, please let me know if not.)If I leave ISE open and leave the computer for a while, when I return ISE is frozen.It's window is still...

View Article


Slides, demos and recording of my PowerShell DSC session at the Nordic...

I presented a session called “The State of PowerShell Desired State Configuration”:Read More

View Article

Peddlers of Vawtrak Employing Macro-based Attacks

Net-security.org published a report quoting security firm Trend Micro as saying "Cybercriminals distributing new versions of Vawtrak banking Trojan are the latest ones to use once again popular...

View Article

Configure DHCP with Powershell

So too save a lots of clicks I try to do most of this stuff in Powershell. Here’s my script to automatically configure DHCP with Powershell.Read More

View Article


Exporting and Importing Group Policy Objects via PowerShell

Start powershell and import the Group Policy Cmdlet:Read More

View Article

PowerShell script to get the SharePoint version

To get which version of SharePoint is installed on the server, you can use the Version property on the SPFarm object. The function below will return the version number or a 0 based on whether...

View Article

ok, here's a toughy... for me anyways.

i have a trading platform called NinjaTrader.i am able to download historical data for virtual trading.only thing is i have to download each day separately.a few years back when Posh 1-2 where out i...

View Article


Have script get my attention and stay open

As part of my job duties, I need to wait for several PC's to be online and when they are, connect and do something to them.  So, instead of manually periodically checking to see if they are online, I...

View Article


Powershell and WMI - Foreach gives RPC error

Hello, I am having a very strange experience with WMI connectivity. Trying to read a CSV file with a list of server names into a variable and run a Foreach loop to get WMI information.-------------...

View Article

Test-Connection to catch offline machine and put results in exel file

I would like to integrate Test-Connection  command   into my existing script id like it it to test if machine is online if online continue working,  if machine is offline  dump offline machines into...

View Article

Find SQL Service Name, Status, Type and version

I have this Script that I am working on where I am trying to find every SQL server on the network and collect a list containing Server Name, Every SQL Service/Instance name on the server, Type of SQL...

View Article

PowerShell Problem Solver: How to Pull Data from Log Files using PowerShell

If the log files are structured or predictable, it doesn’t take much to create a PowerShell tool for extracting useful information. Many times you can get what you need with a simple one-line command....

View Article


#Powershell and Automating SQL Server Builds-Part 2

The thing is, we hadn’t quite gotten to the Powershell part yet and only really covered the build process plus installing SQL Server.  Let’s change that and move on to the next steps.Read More

View Article

Create and pre-configure Azure virtual machines the easy way with PowerShell

There are multiple ways you can create virtual machines (VMs) that are hosted in Azure infrastructure services including portals, Visual Studio, programmatically, and at the command line.Read More

View Article


Up and Running with Server Core for Windows Server 2012 R2

Watch the Online Video Course Up and Running with Server Core for Windows Server 2012 R2Read More 

View Article

Change and Delete Office 365 User Accounts with PowerShell

In this Ask the Admin, I’ll show you how to delete Office 365 users, change user properties, and restore users from the recycle bin using Windows PowerShell.Read More

View Article


Get-WmiObject -class win32_product doesn't list all installed Applications

Helloin my test win server 2012 R2 datacenter, i have installed some applications such as mozilla firefox, Advanced renamer, office, Acrobat reader. Get-WmiObject-class...

View Article

Get-Acl / Set-Acl - Error. Please help!

Hi, I want to copy files/folders recurse and with it copy also all ACLs. When i run the script it gaves me the following error. Any idea what am i doing wrong here? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15...

View Article

Add Displayname and password neverchanges to PS script

I would like to add DispalyName and Password never changes (I did not add this attribute) to PS script. This script will add users from a csv file from excel. Here is my script. It works except when I...

View Article
Browsing all 6937 articles
Browse latest View live