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

returning a value from a drop-down

Hello,I'm writing a script to create new users through a form (the normal user creation process is long and complex and therefore prone to human error), but I'm having issues capturing values from a...

View Article


Windows 10 build 9879: How to fix the OneNote, Mail, and Reader app errors

Users of the Windows 10 Preview have reported that the OneNote, Mail and Reader apps not updating on the latest build 9879 of Windows 10. However, a fix has been found for each separate app.Read More 

View Article


Freeze top row in Excel

I've been searching everywhere to understand how to freeze the top row of an Excel spreadsheet using PowerShell.  I can do Bold and Filter but not the freeze pane (row).Thank you,Kurt

View Article

PowerShell Basics: Programming With Loops

In this PowerShell tutorial we show you how to use the For loop, ForEach-Object loop, and the While, Do-While and Do-Until loops.Read More

View Article

Malware defense: How to detect and mitigate advanced evasion techniques

Expert Nick Lewis explores a number of techniques used by advanced malware to evade detection and explains how to detect and mitigate the threats.Read More

View Article


Using the ADO.NET Connection String

Most of my Windows PowerShell scripts use SQL Server Management Objects (SMO) to access SQL Server properties to find out their current state or other information pertinent to the role of an...

View Article

Printing and Hold Print Job

I have a job that writes a letter for  Lots of people with different variables added. All works fine and Doc is created, saved and prints. Is there a method anyone might know how to pass a pin to the...

View Article

Help me improve my script

Greetings,I'm learning PowerShell.  In order to lean certain thing I create script (which I use for tasks) in a basic wayto understand what I want to learn.  In this scrip I want to learn testing a...

View Article


PowerShell management Library for Hyper-V

I just bought a new laptop so I can setup Hyper-V and start to setup virtual machines so I can learn more PowerShell.  I am just about finished with the boot, "PowerShell and WMI" by Siddaway.  In...

View Article


PS script to change desktop background color for all local users doesn't work

hi friendsI am using the following PS script so that any new user which I create in my system (win2008R2 or windows 7 or 8 or...), his desktop background be set as solid color type & its color be...

View Article

powershell script to create system hostname as a text file on desktop

helloI want to write a simple PowerShell script & use it as logon script on my students systems so that anytime they logon to their windows 7 or windows 8 systems, their computer name be created as...

View Article

what does this special tag tag d in powershell formating files

hi friendsas we know one of the most frustrating tasks in PowerShell is when we want to work with objects for example get commands, list files & directories, list processes, we have to Pipe our...

View Article

Send and Forward the same mail generated in a powershell report

Good morning Powershell experts,I would like to ask about powershell and send a mail. I need to send a mail from my script to one use mail account and this same mail, I would like to forward it to...

View Article


AD Accounts Disabled/Enabled Query

Hi powershell.com,I'm trying to create a list of users with their account expiration date and the status of the account (either Disabled OR Enabled) but I'm missing a necessary filter.Scouring the web,...

View Article

get-dns problem

Colleagues,i type get-dns cmdlet, and i gotPS C:\powershell_v3> get-dnsget-dns : Index was outside the bounds of the array.At line:1 char:1+ get-dns+ ~~~~~~~    + CategoryInfo          :...

View Article


Required Script to Check Bitlocker Status in Mulitple computers

Hi I need a help from you friends, I am working in a IT sector where Bitlocker is one of the serviceI have List of more than 5000 plus computers , i need to check the status of all computers and need...

View Article

Accessing Oracle Database 11g with Powershell

Hi there Has anyone any experience with accessing a oracle 11g database in powershell? Is there a module which can be downloaded in order to access a oracle database. I want to extract data from a...

View Article


Issuing PowerShell commands from a Linux box

I need to send PowerShell commands to a Windows server from a Linux box.Googling in the web it looks it is possible, at least with the latest PowerShell versions, but I need to find the best (and...

View Article

Managing Services, Part 1: Investigating Service Information Using PowerShell

When a key service goes down on a server, you will usually hear about it from a user or another office such as the help desk when they begin receiving calls from users. It's also entirely possible that...

View Article

Controlling Windows Firewall with PowerShell

Continuing on the theme of using Windows PowerShell and related tools to automate server setup—and in particular, to automate domain controller (DC) setup—let’s tackle what many consider to be one of...

View Article
Browsing all 6937 articles
Browse latest View live