{"id":113804,"date":"2020-06-06T13:25:37","date_gmt":"2020-06-06T05:25:37","guid":{"rendered":"http:\/\/4563.org\/?p=113804"},"modified":"2020-06-06T13:25:37","modified_gmt":"2020-06-06T05:25:37","slug":"%e6%97%a2%e7%84%b6%e9%83%bd%e6%9c%89a1p%e4%ba%86-%e9%82%a3%e6%88%91%e5%86%8d%e5%8f%91%e4%b8%80%e4%b8%8b%e8%b7%91%e5%8f%b7%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=113804","title":{"rendered":"\u65e2\u7136\u90fd\u6709A1P\u4e86 \u90a3\u6211\u518d\u53d1\u4e00\u4e0b\u8dd1\u53f7\u811a\u672c"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>lzdszdl<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u65e2\u7136\u90fd\u6709A1P\u4e86 \u90a3\u6211\u518d\u53d1\u4e00\u4e0b\u8dd1\u53f7\u811a\u672c<\/h3>\n<p>  \t\t\u9996\u5148\u7ba1\u7406\u5458\u8fd0\u884cpowershell<br \/>  \u6267\u884c\uff1a<br \/>  Install-Module -Name AzureAD<br \/>  Install-Module -Name MSOnline<br \/>  Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser<\/p>\n<p>  \u7136\u540e\u767b\u5f55\u8d26\u53f7\uff1a<br \/>  Connect-AzureAD<br \/>  Connect-MsolService<\/p>\n<p>  \u7136\u540e\u83b7\u53d6sku<br \/>  Get-MsolAccountSku<br \/>  \u590d\u5236SKU<br \/>  \u4fee\u6539\u4e0b\u9762\u7684\u811a\u672c\u4e3a\u4f60\u7684\u5185\u5bb9<br \/>  \u751f\u6210\u7684\u5e10\u53f7\u683c\u5f0f\u4e3a\u7528\u6237\u540d\u524d\u7f00+\u7b2c\u51e0\u4e2a<br \/>  \u4f8b\u5982ppx1..ppx2..ppx1000<br \/>  \u6ce8\u610f\u4fee\u6539if\u7684 1 5000<br \/>  &#8211;<br \/>  Function GetRandom($NUM,$RT){<br \/>   If (::IsNullOrEmpty($NUM)) { Return } Else { If (::IsNullOrEmpty($($($NUM).ToString()).Trim())){ Return }}<br \/>   If ($NUM -match &quot;,&quot;) {$Len1 = (($NUM -split(&quot;,&quot;, 2))).Trim(); $Len2 = (($NUM -split(&quot;,&quot;,2))).Trim()} Else{$Len = $NUM; $Len1 =&quot;&quot;;$Len2 =&quot;&quot;}<br \/>   If (-Not (::IsNullOrEmpty($Len1) -or ::IsNulorEmpty($Len2))) { $Len = (((::ToInt32($Len1,10)).. (::ToInt32($Len2,10)))| Get-Random) }<br \/>   If (::IsNullOrEmpty($Len)) { Return }<br \/>   $RList = (49..57 + 65..90 + 97..122)<br \/>  Return -join( $RList | Get-Random -count $Len| %{$_})<br \/>  }<\/p>\n<p>  for($i=1;$i -le 5000;$i++)<br \/>  {&nbsp; &nbsp;$passwd=GetRandom(16)<br \/>  &nbsp; &nbsp; $passwd=$passwd+&quot;!&quot;<br \/>  &nbsp; &nbsp; #$head=GetRandom(8)<br \/>  &nbsp; &nbsp; $name=&quot;\u7528\u6237\u540d\u524d\u7f00&quot;+$i+&quot;@\u4f60\u7684\u57df\u540d&quot;<br \/>  &nbsp; &nbsp; New-MsolUser -DisplayName O365 -UserPrincipalName $name -UsageLocation US -Password $passwd -LicenseAssignment xxxxx:STANDARDWOFFPACK_STUDENT<br \/>  &nbsp; &nbsp; &quot;$name&#8211;$passwd&quot; | Out-File -Append D:A1P_STU.txt<br \/>  }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>riwsh<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9a6c\u514b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5434\u5f66\u7956<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u811a\u672c\u6709\u4e86\uff0cA1P\u53bb\u54ea\u4e70\uff0c99\u7684\uff0c\u6da8\u4ef7\u7684\u4e0d\u8981\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>dbug<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u652f\u6301\u5927\u4f6c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>fule<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u5e16\u5e2e\u9876\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>b66667777<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5e2e\u9876\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wifitry<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>victor_ada<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7136\u540e\u81ea\u5df1\u8dd1\u81ea\u5df1\uff1fyc005t \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6211\u80fd\u505a\u4e24\u4e2a\u5c0f\u65f6<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8dd1\u8fd9\u4e2a\u65f6\u95f4\u597d\u957f\u554a\uff0c\u6211\u4e00\u4e2a\u5c0f\u65f6\u90fd\u6ca1\u8dd1\u5b8c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xswy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t99\u7684a1p\u6765\u4e00\u4e2ahttps:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>lzdszdl \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u65e2&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/113804"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=113804"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/113804\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=113804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=113804"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=113804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}