Powershell

15K

Solutions

7K

Contributors

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.

Share tech news, updates, or what's on your mind.

Sign up to Post

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
1
 
LVL 8

Expert Comment

by:Senior IT System Engineer
Comment Utility
Hi Sunil,

Does this means that if the Outlook client is closed, the result can still be displayed or it will be skipped ?
0
 
LVL 7

Author Comment

by:Sunil Chauhan
Comment Utility
this script gets the server side rule, so no impact of outlook open or closed.
0
Free Tool: Site Down Detector
LVL 9
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
2
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes. We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that with a PowerShell script.
0
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract user data, including hashes from an IFM backup.
1
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
2
 
LVL 15

Author Comment

by:Greg Besso
Comment Utility
So IMO this is a great example of a project where you can "divide and conquer". You have a few different parts...

First, you have your method of deploying Office 365 ProPlus. This article shows my method of getting that done. Just download the scripts, tweak them to meet your needs/environment, and then it's all set.

Second, you have the "how will I install this remotely on many computers" step. For me, I rolled my own SCCM type of solution which is a set of scripts that I also have up on my blog that I called "PSMANAGE" scripts. It's an evolving project of mine, but check it out if you like.

Another tool I used to push out software remotely was this PS Tools PsExec.exe. You could remotely push a command to any workstation that was online, such as telling it to run your silentInstall.bat file. Check that out also:

https://technet.microsoft.com/en-us/sysinternals/pstools.aspx
1
 
LVL 8

Expert Comment

by:Senior IT System Engineer
Comment Utility
Thanks, Greg, you are amazing :-)
let us know once you've shared the new script of yours.
0
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes with Storage Spaces Direct on it.
1
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
0
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
1
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
1
 
LVL 8

Expert Comment

by:Senior IT System Engineer
Comment Utility
Does the user will notice any performance issue when the scanning is running ?
0
 
LVL 9

Author Comment

by:Frank McCourry
Comment Utility
Performance degradation is relative only to the number of paths and at what level you enter that path.  It is the equivalent of performing a non-indexed search on the users computer.  If you keep the search path narrow, the user will probably not even notice.  If you start at the root, I guarantee that your phone will ring.  

This script was designed to find a specific file in specific locations, thereby limiting the amount of hard drive activity it causes on the end users computer.  I run this once a month or so and have had no complaints.
0
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
0
Visualize your virtual and backup environments
LVL 1
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that allow you to create installations of Nano Server.
0
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
1
 

Expert Comment

by:Abhinav veluvarthy
Comment Utility
Good work. It helped me.
thanks
0
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
1
 
LVL 8

Expert Comment

by:Senior IT System Engineer
Comment Utility
Hi SCCMCanuck,

Which of the Powershell line that I can edit safely to suit my environment ?
0
 
LVL 9

Author Comment

by:SCCMCanuck
Comment Utility
Thanks for your interest. At the moment the following lines are safe to change

[version]$InstallerVersion = '8.0.1210.13'
$AppName = 'Java*'

The value of $AppName variable is a wildcard string that corresponds with the DisplayName registry value, where as $InstalledVersion corresponds to DisplayVersion.

You can modify any part of the script to accommodate any type of detection method and use and/or statements to create a more restrictive set of criteria. The goal of my example is to make the SCCM client agent believe that Java is installed if its version is greater than or equal to the value of $InstallerVersion in the Variable Declaration section

Registry.PNG
1
A brief introduction to what I consider to be the best editor for PowerShell.
0
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
0
 
LVL 19

Expert Comment

by:Walter Curtis
Comment Utility
Great information. Thanks! Recommended reading for all SharePoint people. This should be submitted as an article.

Have a good one...
1
A procedure for exporting installed hotfix details of remote computers using powershell
2
 
LVL 8

Expert Comment

by:Senior IT System Engineer
Comment Utility
Thanks for sharing !
0
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office 365 via Windows PowerShell using Exchange Online tr
1
PowerShellAutomation
This article will help you understand what HashTables are and how to use them in PowerShell.
0
 
LVL 70

Expert Comment

by:Qlemo
Comment Utility
Note that starting with PS 4 you do not need to use [Ordered] with [PSCustomObject], as the sequence gets preserved already.
And there is a lot more to say about hashtables, of course ...
0
Synchronize a new Active Directory domain with an existing Office 365 tenant
1
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
2
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
2
Set OWA language and time zone in Exchange for individuals, all users or per database.
1
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get without Visual Studio which was a requirement.
1
In this previous article, we made basic license assignments to users in O365. When I say basic, the method is the simplest way to enable all of the license options (Exchange Online, Office 365 ProPlus, Office Online, etc.) within a specific subscription license (Office 365 Enterprise E3, Enterprise Mobility Suite, etc.).
 
O365 Licensing 2
The following instructions will provide the ability to granularly enable license options by disabling the products within a specific subscription we do not want to use. What is odd to me is that to enable a license option in Office 365 we must disable the options we do not want enabled. It seems backwards, but it is what it is.

NOTE: This article makes an assumption that user accounts are present in Office 365 through manual addition or syncing from on premises. 

CONNECT TO OFFICE 365

 

First, Connect to Office 365 with PowerShell.  

ASSIGN USAGE LOCATION

 

Before a subscription license and license options can be applied, a usage location is required to be assigned for each user that will be using Office 365 resources. This next command will assign the usage location of “US” (United States of America) for every unlicensed user in an Office 365 tenant. NOTE: Other 2 code country codes used by Microsoft can be found here.
 

Get-MsolUser -UnlicensedUsersOnly -All | Set-MsolUser -UsageLocation “US”

Open in new window

…or we can assign a usage location for an individual user using this command.
 
Set-MsolUser -UserPrincipalName username@domainname.com -UsageLocation "US"

Open in new window

0
Powershell Script Signing
How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
9
 
LVL 66

Expert Comment

by:Jim Horn
Comment Utility
Great article, and probably the best use of images to illustrate the text I've seen in a log time.
Voted Yes and recommending for Featured Article.
0
 
LVL 18

Author Comment

by:LesterClayton
Comment Utility
Thanks for the kind words - I like to show pictrures so that people can follow the important steps :)
0

Powershell

15K

Solutions

7K

Contributors

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.