{"id":47,"date":"2015-12-29T08:40:25","date_gmt":"2015-12-29T07:40:25","guid":{"rendered":"http:\/\/backes.nu\/?p=47"},"modified":"2016-06-15T08:14:27","modified_gmt":"2016-06-15T06:14:27","slug":"47-2","status":"publish","type":"post","link":"https:\/\/backes.nu\/index.php\/2015\/12\/29\/47-2\/","title":{"rendered":"Kopiera drivrutiner fr\u00e5n en boot-image till en annan"},"content":{"rendered":"<p>Lifesaver. Eller med andra ord, en grym tidsbesparare.<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Function Copy-BootImageDrivers {\r\n    PARAM (\r\n        $from, $to\r\n    )\r\n \r\n    $boot = Get-CMBootImage -ID $to\r\n \r\n    (Get-CMBootImage -Id $from).ReferencedDrivers | ForEach-Object {\r\n        Write-Verbose &quot;Copying $($_.Id) to $($to)&quot;\r\n        Set-CMDriver -Id $_.Id -AddBootImagePackage $boot -UpdateDistributionPointsforBootImagePackage $false\r\n    }\r\n \r\n}\r\n \r\n#Example use\r\nCopy-BootImageDrivers -from &quot;ABC00123&quot; -to &quot;ABC00456&quot;<\/pre>\n<p>Tack till Rikard R\u00f6nnkvist, k\u00e4lla <a href=\"http:\/\/www.snowland.se\/2015\/04\/22\/copy-drivers-from-one-boot-image-to-another\/\" target=\"_blank\">SnowLand<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lifesaver. Eller med andra ord, en grym tidsbesparare. Function Copy-BootImageDrivers { PARAM ( $from, $to ) $boot = Get-CMBootImage -ID $to (Get-CMBootImage -Id $from).ReferencedDrivers | ForEach-Object { Write-Verbose &quot;Copying $($_.Id) to $($to)&quot; Set-CMDriver -Id $_.Id -AddBootImagePackage $boot -UpdateDistributionPointsforBootImagePackage $false }&#8230;..<\/p>\n","protected":false},"author":1,"featured_media":92,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[47,12],"tags":[24,23,11,22],"class_list":["post-47","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-notmine","category-note-to-myself","tag-boot-image","tag-drivrutiner","tag-kneget","tag-sccm"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/backes.nu\/wp-content\/uploads\/2016\/04\/maxresdefault.jpg?fit=1920%2C1080&ssl=1","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Cu3K-L","_links":{"self":[{"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":3,"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/posts\/47\/revisions\/95"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/media\/92"}],"wp:attachment":[{"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/backes.nu\/index.php\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}