Liebe Gemeinde !
Nachdem das PS Engineering Team und dort insbesondere Bruce Payette massive Anstrengungen unternommen hat, um die Lücke zwischen Windows Powershell und PowerShell Core zu schließen ist nun das WindowsCompatibility Modul verfügbar. Link
Mit dem Modul ist es möglich, Windows PS Module (Desktop Edition) in PS Core zu laden und zu verwenden.
Wichtig: Auf dem Windows Rechner muss Windows Remoting eingeschaltet sein („Enable-PSRemoting“ als Admin ausführen).
Wie funktioniert das ?
Unter Windows wird eine neue Remoting Session auf die lokale Maschine eröffnet (ausser man gibt einen remote-host an) und die Befehle dann mittels implizitem Remoting ausgeführt.
Die Session heißt dann: „wincompat-localhost-username“
Wenn man Module mit „Import-WinModule“ lädt, werden die in dieser Session geladen. Man kann auch in die Session einsteigen („Enter-PSSession -Id 1“.
Das Modul ist vorerst auf Windows Maschinen freigegeben, da der WinRM Support für PSCore auf mac und Linux noch sehr instabil ist. Ausserdem verlangt das Modul PS Core 6.1
Befehle
Folgene Befehle stehen zur Verfügung:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 |
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="fb:app_id" content="1574881259485348" /> <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="@nuget"> <meta property="og:title" content="WindowsCompatibility 1.0.0" /> <meta property="og:type" content="nugetgallery:package" /> <meta property="og:url" content="https://powershellgallery.com/packages/WindowsCompatibility/" /> <meta property="og:description" content="This module provides compatibility utilities that allow PowerShell Core sessions to invoke commands that are only available in Windows PowerShell. These utilities help you to discover available modules, import those modules through proxies and then use the module commands much as if they were native to PowerShell Core." /> <meta property="og:determiner" content="a" /> <meta property="og:image" content="https://powershellgallery.com/Content/Images/Branding/PackageDefaultIcon.png" /> <meta name="document_id" content="WindowsCompatibility" /> <title> PowerShell Gallery | WindowsCompatibility 1.0.0 </title> <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link title="https://www.powershellgallery.com" type="application/opensearchdescription+xml" href="/opensearch.xml" rel="search"> <link href="/Content/gallery/css/site.min.css?v=N-FMpZ9py63ZO32Sjay59lx-8krWdY3bkLtzeZMpb8w1" rel="stylesheet"/> <link href="/Content/gallery/css/branding.css?v=1.2" rel="stylesheet"/> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <script type="text/javascript"> window.addEventListener('DOMContentLoaded', () => { const tabs = document.querySelectorAll('[role="tab"]'); const tabList = document.querySelector('[role="tablist"]'); // Add a click event handler to each tab tabs.forEach((tab) => { tab.addEventListener('click', changeTabs); }); // Enable arrow navigation between tabs in the tab list let tabFocus = 0; tabList?.addEventListener('keydown', (e) => { // Move right if (e.keyCode === 39 || e.keyCode === 37) { tabs[tabFocus].setAttribute('tabindex', -1); if (e.keyCode === 39) { tabFocus++; // If we're at the end, go to the start if (tabFocus >= tabs.length) { tabFocus = 0; } // Move left } else if (e.keyCode === 37) { tabFocus--; // If we're at the start, move to the end if (tabFocus < 0) { tabFocus = tabs.length - 1; } } tabs[tabFocus].setAttribute('tabindex', 0); tabs[tabFocus].focus(); } }); }); function changeTabs(e) { const target = e.target; const parent = target.parentNode; const grandparent = parent.parentNode; // Remove all current selected tabs parent .querySelectorAll('[aria-selected="true"]') .forEach((t) => t.setAttribute('aria-selected', false)); // Set this tab as selected target.setAttribute('aria-selected', true); // Hide all tab panels grandparent .querySelectorAll('[role="tabpanel"]') .forEach((p) => p.setAttribute('hidden', true)); // Show the selected panel grandparent.parentNode .querySelector(`#${target.getAttribute('aria-controls')}`) .removeAttribute('hidden'); } </script> </head> <body> <div class="container-fluid banner banner-notice text-center"> <div class="row"> <div class="col-sm-12" role="alert"> <i class="ms-Icon ms-Icon--Warning" aria-hidden="true"></i> <span> This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. <a href="https://go.microsoft.com/fwlink/?linkid=845480" aria-label="Learn more about Microsoft's Cookie Policy">Learn more</a> </span> </div> </div> </div> <nav class="navbar navbar-inverse"> <div class="container"> <div class="row"> <div class="col-sm-12 text-center"> <a href="#" id="skipToContent" class="showOnFocus" title="Skip To Content">Skip To Content</a> </div> </div> <div class="row"> <div class="col-sm-offset-1 col-sm-2"> <div class="navbar-header"> <a href="/" class="nvabar-header-aLink"> <div class="navbar-logo-container"> <img class="navbar-logo img-responsive" alt="PowerShell Gallery Home" src="/Content/Images/Branding/psgallerylogo.svg" onerror="this.src='https://powershellgallery.com/Content/Images/Branding/psgallerylogo-whiteinlay.png'; this.onerror = null;" /> <p class="navbar-logo-text">PowerShell Gallery</p> </div> </a> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" title="Open Main Menu and profile dropdown"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> </div> <div class="col-sm-12 col-md-8 special-margin-left"> <div id="navbar" class="navbar-collapse collapse" aria-label="Navigation Bar"> <table> <tr> <td colspan="3"> <ul class="nav navbar-nav" role="list"> <li class=""> <a role="link" href="/packages" target="" aria-label="Packages"> <span aria-hidden="true">Packages</span> </a> </li> <li class=""> <a role="link" href="/packages/manage/upload" target="" aria-label="Publish"> <span aria-hidden="true">Publish</span> </a> </li> <li class=""> <a role="link" href="https://go.microsoft.com/fwlink/?LinkID=825202&clcid=0x409" target="_blank" aria-label="Documentation"> <span aria-hidden="true">Documentation</span> </a> </li> </ul> </td> <td colspan="1" class="td-align-topright"> <div class="nav navbar-nav navbar-right"> <li class=""> <a role="link" href="/users/account/LogOn?returnUrl=%2Fpackages%2FWindowsCompatibility%2F1.0.0" target="" aria-label="Sign in"> <span aria-hidden="true">Sign in</span> </a> </li> </div> </td> </tr> </table> </div> </div> </div> </div> <div class="container-fluid search-container"> <div class="row" id="search-row"> <form aria-label="Package search bar" action="/packages" method="get"> <div class="container"> <div class="row"> <div class="col-sm-offset-1 col-sm-2"></div> <div class="col-sm-12 col-md-8"> <div class="form-group special-margin-left"> <label for="search">Search PowerShell packages:</label> <div class="input-group" role="presentation"> <input name="q" type="text" class="form-control ms-borderColor-blue search-box" id="search" aria-label="Enter packages to search, use the arrow keys to autofill." placeholder="Az, etc..." autocomplete="on" value="" /> <span class="input-group-btn"> <button class="btn btn-default btn-search ms-borderColor-blue ms-borderColor-blue--hover" type="submit" title="Search PowerShell packages" aria-label="Search PowerShell packages"> <span class="ms-Icon ms-Icon--Search" aria-hidden="true"></span> </button> </span> </div> <div id="autocomplete-results-container" class="text-left" tabindex="0"></div> <script type="text/html" id="autocomplete-results-row"> <!-- ko if: $data --> <!-- ko if: $data.PackageRegistration --> <div class="col-sm-4 autocomplete-row-id autocomplete-row-data"> <span data-bind="attr: { id: 'autocomplete-result-id-' + $data.PackageRegistration.Id, title: $data.PackageRegistration.Id }, text: $data.PackageRegistration.Id"></span> </div> <div class="col-sm-4 autocomplete-row-downloadcount text-right autocomplete-row-data"> <span data-bind="text: $data.DownloadCount + ' downloads'"></span> </div> <div class="col-sm-4 autocomplete-row-owners text-left autocomplete-row-data"> <span data-bind="text: $data.OwnersString + ' '"></span> </div> <!-- /ko --> <!-- ko ifnot: $data.PackageRegistration --> <div class="col-sm-12 autocomplete-row-id autocomplete-row-data"> <span data-bind="attr: { id: 'autocomplete-result-id-' + $data, title: $data }, text: $data"></span> </div> <!-- /ko --> <!-- /ko --> </script> <script type="text/html" id="autocomplete-results-template"> <!-- ko if: $data.data.length > 0 --> <div data-bind="foreach: $data.data" id="autocomplete-results-list"> <a data-bind="attr: { id: 'autocomplete-result-row-' + $data, href: '/packages/' + $data, title: $data }" tabindex="-1"> <div data-bind="attr:{ id: 'autocomplete-container-' + $data }" class="autocomplete-results-row"> </div> </a> </div> <!-- /ko --> </script> </div> </div> </div> </div> </form> </div> </div> </nav> <div id="skippedToContent"> <section role="main" class="container main-container page-package-details"> <div class="row"> <aside class="col-sm-offset-1 col-sm-2 package-details-info" aria-label="Package Details Info"> <h3 aria-hidden="true"> <img class="package-icon img-responsive" aria-hidden="true" alt="" src="https://powershellgallery.com/Content/Images/Branding/packageDefaultIcon.svg" onerror="this.src='https://powershellgallery.com/Content/Images/Branding/packageDefaultIcon.png'; this.onerror = null;" /> </h3> <ul class="list-unstyled ms-Icon-ul"> <li class="package-details-info-main"> 3,654,717 <br /> <text class="text-sideColumn"> Downloads </text> </li> <li class="package-details-info-main"> 3,652,560 <br /> <text class="text-sideColumn"> Downloads of 1.0.0 </text> </li> <li> <a href="/stats/packages/WindowsCompatibility?groupby=Version">View full stats</a> </li> <li class="package-details-info-main"> 11/15/2018 <br /> <text class="text-sideColumn">Last Published</text> </li> </ul> <h3>Info</h3> <ul class="list-unstyled ms-Icon-ul"> <li> <a href="https://github.com/PowerShell/WindowsCompatibility" data-track="outbound-project-url" rel="nofollow"> Project Site </a> </li> <li> <a href="https://opensource.org/licenses/MIT" data-track="outbound-license-url" rel="nofollow"> License Info </a> </li> <li> <a href="/packages/WindowsCompatibility/1.0.0/ContactOwners">Contact Owners</a> </li> <li> <a href="/packages/WindowsCompatibility/1.0.0/ReportAbuse"> Report </a> </li> </ul> </aside> <article class="col-sm-12 col-md-8 package-details-main special-margin-left"> <div class="package-title"> <h1> WindowsCompatibility </h1> <h2>1.0.0</h2> </div> <p>This module provides compatibility utilities that allow PowerShell Core sessions to <br />invoke commands that are only available in Windows PowerShell. These utilities help you <br />to discover available modules, import those modules through proxies and then use the module <br />commands much as if they were native to PowerShell Core.</p> <h2>Minimum PowerShell version</h2> <p>6.0</p> <h2> <a href="#" data-toggle="collapse" data-target="#installation-options" aria-controls="installation-options" id="show-installation-options" name="Installation Options"> <i class="ms-Icon ms-Icon--ChevronDown" aria-hidden="false" name="Installation Options" title="Installation Options" role="button"></i> <span>Installation Options</span> </a> </h2> <div id="installation-options" class="installation-options panel-collapse collapse in"> <div class="install-tabs"> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"> <a href="#install-item" aria-selected="true" aria-controls="install-item" role="tab" data-toggle="tab" tabindex="0"> Install Module </a> </li> <li role="presentation" class=""> <a href="#install-psresource" aria-selected="false" aria-controls="install-psresource" role="tab" data-toggle="tab" tabindex="-1"> Install PSResource </a> </li> <li role="presentation" class=""> <a href="#azure-automation" aria-selected="false" aria-controls="azure-automation" role="tab" data-toggle="tab" tabindex="-1"> Azure Automation </a> </li> <li role="presentation" class=""> <a href="#manual-download" aria-selected="false" aria-controls="manual-download" role="tab" data-toggle="tab" tabindex="-1"> Manual Download </a> </li> </ul> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="install-item" tabindex="0"> <p>Copy and Paste the following command to install this package using PowerShellGet <a href='https://aka.ms/InstallModule' aria-label='Click here for more information on how to install this package using PowerShellGet.'>More Info</a></p> <div> <div class="install-script visible" id="install-item-text"> <span> Install-Module -Name WindowsCompatibility </span> </div> <div class="copy-button visible" aria-live="assertive"> <button id="install-item-button" class="btn btn-default ms-bgColor-blue ms-borderColor-blue" type="button" data-toggle="popover" data-placement="bottom" data-content="Copied." aria-label="Copy the Install Module command" aria-live="assertive"> <span class="ms-Icon ms-Icon--Copy ms-fontColor-white"></span> </button> <div role="button" aria-label="copied" aria-live="assertive"></div> </div> </div> </div> <div role="tabpanel" class="tab-pane " id="install-psresource" tabindex="0"> <p>Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet <a href='https://aka.ms/InstallPSResource' aria-label='Click here for more information on how to install this package using PowerShellGet.'>More Info</a></p> <div> <div class="install-script visible" id="install-psresource-text"> <span> Install-PSResource -Name WindowsCompatibility </span> </div> <div class="copy-button visible" aria-live="assertive"> <button id="install-psresource-button" class="btn btn-default ms-bgColor-blue ms-borderColor-blue" type="button" data-toggle="popover" data-placement="bottom" data-content="Copied." aria-label="Copy the Install PSResource command" aria-live="assertive"> <span class="ms-Icon ms-Icon--Copy ms-fontColor-white"></span> </button> <div role="button" aria-label="copied" aria-live="assertive"></div> </div> </div> </div> <div role="tabpanel" class="tab-pane " id="azure-automation" tabindex="0"> <p>You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. <a href='https://aka.ms/PSGalleryToAzureAutomation' aria-label='Click here to learn more about how to deploy this package to Azure Automation.'>Learn More</a></p> <div> <button id="DeployToAzureAutomation_Button" type="button" title="Deploy this module to Azure Automation." onclick="window.open('/packages/WindowsCompatibility/1.0.0/DeployItemToAzureAutomation?itemType=PSModule&requireLicenseAcceptance=False', target='_blank')">Deploy to Azure Automation</button> </div> </div> <div role="tabpanel" class="tab-pane " id="manual-download" tabindex="0"> <p>Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. <a href='https://aka.ms/psgallery-manualdownload' aria-label='Click here to learn more about how to manually download a raw nupkg file.'>Learn More</a></p> <div> <button id="DownloadNupkg_Button" type="button" title="Download the raw nupkg file" onclick="location.href='https://www.powershellgallery.com/api/v2/package/WindowsCompatibility/1.0.0'">Download the raw nupkg file</button> </div> </div> </div> </div> </div> <h2>Owners</h2> <ul class="list-unstyled owner-list"> <li> <a href="/profiles/stevel-msft" title="stevel-msft"><img src="https://secure.gravatar.com/avatar/7edfee640a32a94b3f57fc0db66f1094?s=64&r=g&d=blank" class="owner-image" height="32" title="stevel-msft" width="32" alt="gravatar" /></a> <a href="/profiles/stevel-msft" title="stevel-msft"> stevel-msft </a> </li> </ul> <h2>Copyright</h2> <p>Copyright (c) Microsoft Corporation. All rights reserved</p> <!-- Requires License Acceptance --> <!--Full Item Details--> <h2> <a href="#" data-toggle="collapse" data-target="#full-item-details" aria-controls="full-item-details" id="show-full-item-details"> <i class="ms-Icon ms-Icon--ChevronRight" aria-hidden="false"></i> <span>Package Details</span> </a> </h2> <div id="full-item-details" class="panel-collapse collapse full-item-details"> <h3 class="h3-collapse-in">Author(s)</h3> <ul class="list-unstyled owner-list content-collapse-in"> <li>PowerShell</li> </ul> <h3 class="h3-collapse-in">Tags</h3> <p class="content-collapse-in"> <a href="/packages?q=Tags%3A%22WindowsPowerShell%22" class="tag">WindowsPowerShell</a> <a href="/packages?q=Tags%3A%22Compatibility%22" class="tag">Compatibility</a> <a href="/packages?q=Tags%3A%22Core%22" class="tag">Core</a> </p> <h3 class="h3-collapse-in">Functions</h3> <p class="content-collapse-in"> <a href="/packages?q=Functions%3A%22Initialize-WinSession%22" class="tag">Initialize-WinSession</a> <a href="/packages?q=Functions%3A%22Add-WinFunction%22" class="tag">Add-WinFunction</a> <a href="/packages?q=Functions%3A%22Invoke-WinCommand%22" class="tag">Invoke-WinCommand</a> <a href="/packages?q=Functions%3A%22Get-WinModule%22" class="tag">Get-WinModule</a> <a href="/packages?q=Functions%3A%22Import-WinModule%22" class="tag">Import-WinModule</a> <a href="/packages?q=Functions%3A%22Compare-WinModule%22" class="tag">Compare-WinModule</a> <a href="/packages?q=Functions%3A%22Copy-WinModule%22" class="tag">Copy-WinModule</a> <a href="/packages?q=Functions%3A%22Add-WindowsPSModulePath%22" class="tag">Add-WindowsPSModulePath</a> </p> <h3 class="h3-collapse-in">PSEditions</h3> <p class="content-collapse-in"> <a href="/packages?q=Tags%3A%22PSEdition_Core%22" class="tag">Core</a> </p> <h3 class="h3-collapse-in">Dependencies</h3> <p class="content-collapse-in">This module has no dependencies.</p> <h3 class="h3-collapse-in">Release Notes</h3> <p class="content-collapse-in">This module provides a set of commands that allow you to use <br />Windows PowerShell modules from PowerShell Core (PowerShell 6). <br />The following commands are included: <br /> Initialize-WinSession <br /> Add-WinFunction <br /> Invoke-WinCommand <br /> Get-WinModule <br /> Import-WinModule <br /> Compare-WinModule <br /> Copy-WinModule <br />See the help for the individual commands for examples on how <br />to use this functionality. <br /> <br />Additionally, the command `Add-WindowsPSModulePath` will update <br />your $ENV:PSModulePath to include Windows PowerShell module directories <br />within PowerShell Core 6. <br /> <br />NOTE: This release is only intended to be used with PowerShell Core 6 <br />running on Microsoft Windows. Linux and MacOS are not supported at this <br />time.</p> </div> <!-- FileList --> <h2> <a href="#" data-toggle="collapse" data-target="#file-lists" aria-controls="file-lists" id="show-file-lists"> <i class="ms-Icon ms-Icon--ChevronRight" aria-hidden="false"></i> <span>FileList</span> </a> </h2> <p> <ul class="list-styled panel-collapse collapse file-lists content-collapse-in tab-content" id="file-lists"> <li aria-label="WindowsCompatibility.nuspec 1 of 5"> WindowsCompatibility.nuspec </li> <li aria-label="WindowsCompatibility-help.xml 2 of 5"> <a href="/packages/WindowsCompatibility/1.0.0/Content/WindowsCompatibility-help.xml" title="File content for WindowsCompatibility-help.xml">WindowsCompatibility-help.xml</a> </li> <li aria-label="WindowsCompatibility.cat 3 of 5"> WindowsCompatibility.cat </li> <li aria-label="WindowsCompatibility.psd1 4 of 5"> <a href="/packages/WindowsCompatibility/1.0.0/Content/WindowsCompatibility.psd1" title="File content for WindowsCompatibility.psd1">WindowsCompatibility.psd1</a> </li> <li aria-label="WindowsCompatibility.psm1 5 of 5"> <a href="/packages/WindowsCompatibility/1.0.0/Content/WindowsCompatibility.psm1" title="File content for WindowsCompatibility.psm1">WindowsCompatibility.psm1</a> </li> </ul> </p> <!--Making this condition false so as to never enter this code block. 'if (false)' below needs to be replaced with 'if (!Model.Deleted)' whenever we are ready--> <h2> <a href="#" data-toggle="collapse" data-target="#version-history" aria-controls="version-history" id="show-version-history" name="Version History"> <i class="ms-Icon ms-Icon--ChevronDown" aria-hidden="false" name="Version History" title= "Version History" role="button"></i> <span>Version History</span> </a> </h2> <div class="version-history panel-collapse collapse in col-xs-12 col-sm-12" id="version-history"> <table class="table borderless content-collapse-in" id = "Version History" name = "Version History"> <thead> <tr> <th>Version</th> <th>Downloads</th> <th>Last updated</th> </tr> </thead> <tbody class="no-border"> <tr> <td> <a href="/packages/WindowsCompatibility/1.0.0"> <b> 1.0.0 (current version) </b> </a> </td> <td> 3,652,560 </td> <td> <span data-datetime="2018-11-15T01:16:43.4970000">11/15/2018</span> </td> </tr> <tr> <td> <a href="/packages/WindowsCompatibility/1.0.0-rc1"> <b> 1.0.0-rc1 </b> </a> </td> <td> 192 </td> <td> <span data-datetime="2018-10-19T16:05:53.1370000">10/19/2018</span> </td> </tr> <tr> <td> <a href="/packages/WindowsCompatibility/0.0.1"> <b> 0.0.1 </b> </a> </td> <td> 1,965 </td> <td> <span data-datetime="2018-06-07T17:41:22.8630000">6/7/2018</span> </td> </tr> </tbody> </table> </div> </article> </div> </section> </div> <footer class="footer"> <div class="container footer-container" > <div class="row"> <div class="hidden-xs footer-heading"> </div> </div> <div class="row"> <div class="col-sm-offset-1 col-sm-1 footer-heading"> <span><a href="/policies/Contact">Contact Us</a></span> </div> <div class="col-sm-1 footer-heading"> <span><a href="/policies/Terms">Terms of Use</a></span> </div> <div class="col-sm-1 footer-heading"> <span><a href="https://go.microsoft.com/fwlink/?LinkId=521839">Privacy Policy</a></span> </div> <div class="col-sm-1 footer-heading"> <span><a href="https://aka.ms/psgallery-status/">Gallery Status</a></span> </div> <div class="col-sm-1 footer-heading"> <span><a href="https://github.com/PowerShell/PowerShellGallery/issues">Feedback</a></span> </div> <div class="col-sm-1 footer-heading"> <span><a href="https://aka.ms/PSGalleryPreviewFAQ">FAQs</a></span> </div> <div class="col-sm-4 footer-heading"> <span class="footer-heading-last">© 2024 Microsoft Corporation</span> </div> </div> </div> </footer> <script src="/Scripts/gallery/site.min.js?v=s-Nycwu4c-T9eVJC1tGlnrSh8SDtsEN_92Vs4B72tZk1"></script> <style type="text/css"> #install-item .install-script span::before { content: "PS> "}#install-psresource .install-script span::before { content: "PS> "}#azure-automation .install-script span::before { content: ""}#manual-download .install-script span::before { content: ""} </style> <script type="text/javascript"> var packageManagers = ["install-item","install-psresource","azure-automation","manual-download"]; </script> <script src="/Scripts/gallery/page-display-package.min.js?v=4RfM17kSv_i_Hi5gfSWPClNnxLxtUvB__uOqa8P6tL41"></script> <script src="https://c.s-microsoft.com/mscc/statics/mscc-0.4.2.min.js"></script> </body> </html> |
Hier eine kurze Beschreibung was die einzelnen Befehle tun:
- Add-WinPSModulePath (Alias) und Add-WindowsPSModulePath: fügt den Windows PS Modulpfad zum aktuellen Pfad hinzu.
- Add-WinFunction: Damit kann man eine Function in der Windows Compatibility Session ausführen.
- Compare-WinModule: Vergleicht verfügbare gegen geladene Module
- Copy-WinModule: Kopiert ein Modul in den PS Core Befehlspfad
- Initialize-WinSession: Erlaubt das Feintuning der Compatibilitätssession
- Get-WinModule: Zeigt alle verfügbaren Windows Module auf der Maschine an ( die in der Remote Sesison verfügbar sind)
- Import-WinModule: Laden eines Windows Modules in PS Core
- Invoke-WinCommand: Einen einzelnen Befehl in der Compatibility Session ausführen
Kompatible Module
In der PSM1 Datei von WindowsCompatibility steht eine ganz beachtliche Liste von Modulen die unterstützt werden. Siehe unten:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
AppBackgroundTask AppLocker Appx AssignedAccess BitLocker BranchCache CimCmdlets ConfigCI Defender DeliveryOptimization DFSN DFSR DirectAccessClientComponents Dism EventTracingManagement GroupPolicy Hyper-V International IscsiTarget Kds MMAgent MsDtc NetAdapter NetConnection NetSecurity NetTCPIP NetworkConnectivityStatus NetworkControllerDiagnostics NetworkLoadBalancingClusters NetworkSwitchManager NetworkTransition PKI PnpDevice PrintManagement ProcessMitigations Provisioning PSScheduledJob ScheduledTasks SecureBoot SmbShare Storage TrustedPlatformModule VpnClient Wdac WindowsDeveloperLicense WindowsErrorReporting WindowsSearch WindowsUpdate |
Wir werden weiter testen …
LG/R.