In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Recently, there is a need to use Powershell to see the status of the migration task. The reason is that the status of the Microsoft O365 page is not accurate. The task you just created is said to have been completed synchronously in ten minutes.
So to check the status, you must use PowerShell.
I have a script, but there are always errors in execution. The translation into Chinese means that the script execution Policy is not allowed.
Step 1: so I used a command in the first step:
PS C:\ WINDOWS\ system32 > Get-ExecutionPolicy-list
Scope ExecutionPolicy--
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser RemoteSigned
LocalMachine RemoteSigned
Step 2: then I was thinking, I'm going to Microsoft's cloud to verify that this attribute should be RemoteSigned. This was not the case at that time, so I wrote an order as follows:
PS C:\ WINDOWS\ system32 > Get-ExecutionPolicy-list
Scope ExecutionPolicy--
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser RemoteSigned
LocalMachine RemoteSigned
PS C:\ WINDOWS\ system32 > Set-ExecutionPolicy-Scope CurrentUser-ExecutionPolicy RemoteSigned
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
You to the security risks described in the about_Execution_Policies help topic at
Https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): a
PS C:\ WINDOWS\ system32 >
The third step, actually, no, and then I found another order.
The idea of Unlblock-File-path "CloudServicesShell.ps1" is to remove the execution permission of this script. Then the magic is solved, and the script can be executed.
You must want to know what the script code is, because there is information about our company, so it is not convenient to spread it, really want to leave a message.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.