Home PowerShell

Windows PowerShell

27 Conversations

Latest Activity

Custom List Message Item

Hi,

 

I'd like to be able to manage all of our client Office 365 tenants via PowerShell.

 

However when I try to login to PowerShell using the global admin account credentials, this does not allow me to login to PowerShell.

 

What's the best wasy for me to do w

... Read More
59 Views
2 Replies

Hi,

 

You can try this code, it works for me : 

 

Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exch
... Read More

Greetings,

 

We need to know a little more details, such as the error you are getting, what command you have tried, etc.  There is a little setup required such as installin

... Read More

Hi All

 

I have long running scripts running against O365 for our tenant. These can take a day or two to complete.  During the run of the script, there can be an interuption where the credentials manager popup requests the credentials again, despite me havi

... Read More
82 Views
3 Replies

Hello,

 

I'm using this one and works great for me : 

 

Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsof
... Read More

That's just a side effect of broken session to Exchange Online and PowerShell's attempt to recconect to it. The best thing you can do is to optimize your script to run as

... Read More

Hello, I have set up a virtual machine using the Windows 10 trial VM for Hyper-V (https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/, preview 15.15). I would like to use Powershell Direct to run Powershell scripts on my VM. I believe I've suc

... Read More
40 Views
1 Reply

I managed to resolve the issue. I updated the hyper-v configuration for the vm from 5 to 8. I then used the credential "Host computer name"\IEUser  with password Passw0rd

... Read More

Anyone got a explanation why this is happening? Also tried with " around the text in the input.

Read-host seems to work if i only input one thing like: Sway

Not working when inputting: sway,yammer_enterprise

 

1.PNG2.PNG4.PNG

Read More
70 Views
3 Replies

You're passing a String value, it needs to be list. Try it like this:

 

$newSKU = New-MsolLicenseOptions -AccountSkuId tenant:SKUID -DisabledPlans $SelectedPlans.Split(",")

Read More

Found it out, had to do it like this.

5.PNG

 

Read More
Best Response

I want to use PowerShell to export the most recent week's worth of Admin Message Center Messages to a spreadsheet because I want to annotate each item with what I am planning to do about each announcement. #Governance

 

I have an account for this purpose th

... Read More
148 Views
7 Replies

Hi Michael,

The v2 API (preview) requires that you register the script/app.  One immediate term option is to use the non-preview v1 API.  Sample code may be found here (

... Read More

Hello Everyone,

 

If you could share few videos which will easily make understand of the windows powershell better for server admin 

71 Views
1 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
149 Views
4 Replies
I agree Sublime is very nice. But also very pricey. I've been testing Atom (atom.io) which is an open source editor w/ a similar package system that Sublime uses. So far ... Read More

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

We just featured a career profile of MVP @Jaap Brasser who focuses on Powershell, Active Directory, SQL Server, Windows Server and many other technologies.  If you're interested on his take on what a successful career in the cloud looks like, read the pos

... Read More
59 Views
0 Reply

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
226 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
113 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
114 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
114 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

62 Views
0 Reply

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

133 Views
0 Reply