Home Windows PowerShell

Windows PowerShell

19 Conversations

Latest Activity

Custom List Message Item

Looking for a way to update the features for our E3 licensed users. Setting them initially is no problem but we have not found a way to update someone that already has an E3.

 

So user A has an E3 but only  the "SharePoint Online" feature on and we need 5 o

... Read More
169 Views
3 Replies

I'm not sure if you managed to solve this, but I wrote a couple powershell functions that might help. I wasn't having a good time trying to re-assign licenses to users as

... Read More

You need to use New-MsolLicenseOptions cmdlet to achieve this. Check the below document for samples.

https://technet.microsoft.com/en-us/library/dn771769.aspx?f=255&MSPPError=-2147217396

... Read More

There are several articles available on this topic, maybe the most thorough and comprehensive I've seen is this

Read More

I have a litte problem. I'm migrating OneDrives between Office 365 tenants. In the receiving end they require that all documents have a major version. In the orginating end there are a few users that have turned on Minor versions i the versioning settings

... Read More
67 Views
2 Replies

Use "Find-PnPFile" instead of Get-PnPFolderItem and try.

 

Function checkin-allfiles {
[cmdletbinding()]

param (
[Parameter (position = 0,HelpMessage = 'The Folder Site Re
... Read More

If you search for "PowerShell Cheat Sheet" in Duck Duck Go, you get a really great reference for all sorts of syntax/operators/if/loops/etc.

 

https://duckduckgo.com/?q=powershell+cheat+sheet&ia=cheatsheet&iax=1

 

Read More
77 Views
1 Reply
Nice!

The name of this tech community space should be just "PowerShell".

 

I presume the MS Tech Community creators copied "Windows PowerShell" from an existing forum name. The name of the product is/was "Windows PowerShell". But PowerShell 6 is cross-platform, a

... Read More
86 Views
2 Replies
I think that is a great idea unless they plan to create another space by platform, for example "Powershell on Linux".
I agree, If this community ever gets popular, I would also like to see some spaces for various systems/modules.

Hello evry one 

 i have some problem

i create 2 groupe in yammer and want to  administer some right using csv and powershell

 ican i do? any one have some idea?

thanks

45 Views
0 Reply

Free e-book for the next 48 hours - Master PowerShell Tricks
http://www.checkyourlogs.net/?p=21891

94 Views
0 Reply

On the #ESPC16 in Vienna someone is showing a way to store credentials in the Windows credential manager and then use is in Powershell to connect to Exchange / SharePoint / Azure… online.

It was a very simple and I will use it for some scheduled tasks.

 

But

... Read More
253 Views
8 Replies

I am using the PasswordVault module for this, and it works pretty great.

 

I wrote a tiny, crude function that would allow me to export a saved credential to a $CurrentCred

... Read More

It's not exactly the same you asked for but it does the job so might be helpful:

http://practical365.com/blog/saving-credentials-for-office-365-powershell-scripts-and-scheduled-tasks/

Read More

how to change user status in bulk from mfa enabled to disabled. i am trying the script below which is not working

 

$users = Import-Csv 'C:\support\BulkUpdateMFASampleFile.csv'

foreach ($user in $users)

{

$st = New-Object -TypeName Microsoft.Online.Administrat

... Read More
72 Views
1 Reply

Manage to fix it put an old script and new script together to work it out

 

$users = Import-Csv 'C:\support\BulkUpdateMFASampleFile.csv'

foreach ($user in $users)

{

$mfa = @()

... Read More

The chart lists Windows PowerShell command aliases, the Windows PowerShell cmdlet name, and a description of what the command actually does.

 

Command alias

Cmdlet name

Description of command

%

ForEach-Object

Performs an operation against

... Read More
858 Views
0 Reply

Hi All

A few months back, I experimented with windows forms to create dialog boxes for input - as opposed to using the 'Read-Host' command line input.

I then found that after using said scripts, when I unlocked my screen, the PowerShell ISE application had

... Read More
43 Views
0 Reply

Just before the "Windows PowerShell" section became available I posted some information that me be on interest under "Windows Server PowerShell" section. Go ahead and check it out at:

 

https://techcommunity.microsoft.com/t5/Windows-Server-PowerShell/PowerShell-Open-Source-and-Editor-of-Choice/m-p/15287#M13

... Read More
100 Views
2 Replies

I tried that as my editor when I was stuck with a Mac (IBM saving money deploying Macbook Pros) and have to say, Sublime was a much better editor on that platform for me.

Read More

Here's an additional tip that will help you work with PowerShell Core in Bash for Windows.

 

As you all might know, running PowerShell Core in Windows Bash can be challenging. Fortunately not impossible. Please see my blog post: http://www.maxtblog.com/2016/10/running-powershell-in-windows-10-bash-workaround/

... Read More
75 Views
0 Reply

I am FirstRelease so this may not be visible to all, but I am now seeing OneDrive settings for users in the Admin Portal. Fantastic to see a "sign-out" feature which signs the user out of all Office 365 sessions across all devices. What I'm wondering is i

... Read More
97 Views
1 Reply

For those who are following, Vasil answered this in another posting in the OneDrive community:

 
Re: OneDrive Settings in the Active Users Admin Po
... Read More

So, you have a Windows 10 Pro (or higher) but somehow don't have a way to build a linux virtual machine.  In windows 10 (build 14393) you can install the Ubuntu Linux subsytem Bash in your machine. 

 

Currently, if you install PowerShell Open Source in Bash

... Read More
99 Views
0 Reply

Just before the "Windows PowerShell" section became available I posted some information that me be on interest under "Windows Server PowerShell" section. Go ahead and check it out at:

 

https://techcommunity.microsoft.com/t5/Windows-Server-PowerShell/PowerShell-Open-Source-and-Editor-of-Choice/m-p/15287#M13

... Read More
62 Views
0 Reply