{"id":396518,"date":"2024-06-29T12:53:11","date_gmt":"2024-06-29T12:53:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=396518"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=396518","title":{"rendered":"<span>\u0423\u0441\u043a\u043e\u0440\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043a\u0430\u043a \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c Linux-\u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SCCM \u0432 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0441\u0435\u0442\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/aad\/c04\/4ad\/aadc044ada3d6696755778c71878b96b.png\" width=\"780\" height=\"440\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aad\/c04\/4ad\/aadc044ada3d6696755778c71878b96b.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u041e\u0421 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445 \u0432 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u043c\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c System Center Configuration Manager (SCCM) \u0438 \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u0435\u0441\u043b\u0438 \u0440\u0435\u0447\u044c \u0438\u0434\u0451\u0442 \u043f\u0440\u043e Windows, \u043d\u043e \u0441 Linux \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435 \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0442.\u043a. \u043d\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 SCCM.<\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, SCCM \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u0433\u0438\u0431\u043a\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u043e \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u041e\u0421. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f SCCM \u043d\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f, \u0433\u0434\u0435 \u0432\u0441\u0435 \u041f\u041a \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0442\u043e \u0432\u0430\u043c \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0432\u043e\u0442 \u044d\u0442\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/276941\/\">\u0441\u0442\u0430\u0442\u044c\u044f <\/a>\u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041e\u0421 Linux \u0441 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0438.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f SCCM, \u0433\u0434\u0435 \u043c\u043d\u043e\u0433\u043e Distribution Point \u0432 \u043e\u0442\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0445 \u043b\u043e\u043a\u0430\u0446\u0438\u044f\u0445 (\u0441 \u00ab\u043d\u0435\u0431\u044b\u0441\u0442\u0440\u044b\u043c\u0438\u00bb \u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438 \u0441\u0432\u044f\u0437\u0438), \u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430 100 \u041f\u041a \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u0442\u043e \u0441 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u043e. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u0440\u0435\u0448\u0438\u0442\u044c, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0432 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0432 \u0441\u043f\u043e\u0441\u043e\u0431, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 (\u0438\u0434\u0435\u044f \u0432\u0437\u044f\u0442\u0430 \u0438\u0437 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430, \u0441\u043f\u0430\u0441\u0438\u0431\u043e fisher51 \u0438 \u043c\u043e\u0438\u043c \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c, \u043a\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u043b).<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u0438\u0441\u043a\u043e\u043c, \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e, \u0442.\u043a. \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 (\u0434\u043b\u044f Xubuntu \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e 9Gb). \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Xubuntu (\u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430), \u0432\u044b\u0431\u0438\u0440\u0430\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u043e\u0432:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/75a\/ec6\/f9e\/75aec6f9e151fa4bc2500e22e33ec75d.png\" alt=\"\u0420\u0430\u0437\u0431\u0438\u0432\u043a\u0430 \u0434\u0438\u0441\u043a\u0430\" title=\"\u0420\u0430\u0437\u0431\u0438\u0432\u043a\u0430 \u0434\u0438\u0441\u043a\u0430\" width=\"432\" height=\"394\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/75a\/ec6\/f9e\/75aec6f9e151fa4bc2500e22e33ec75d.png\"\/><figcaption>\u0420\u0430\u0437\u0431\u0438\u0432\u043a\u0430 \u0434\u0438\u0441\u043a\u0430<\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435, \u0443 \u043d\u0430\u0441 \u043e\u0434\u0438\u043d \u0434\u0438\u0441\u043a 9Gb \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u043e\u0439, \u0433\u0434\u0435 <strong>\/dev\/sda1<\/strong> \u2013 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u0430\u044f \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044f (FAT32), <strong>\/dev\/sda2<\/strong> \u2013 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0438\u0441\u043a, <strong>\/dev\/sda5<\/strong> \u2013 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e Linux (ext4).<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043a\u0430\u043a \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u043a\u0441\u0438 (PAC \u0444\u0430\u0439\u043b), \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0437\u043e\u043d\u0443 \u0438 \u0442.\u0434.<\/p>\n<p>\u041e\u0431\u0440\u0430\u0437 \u043c\u043e\u0436\u043d\u043e \u0441\u043d\u044f\u0442\u044c \u043b\u0438\u0431\u043e \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0441\u043a, \u043b\u0438\u0431\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0435\u0449\u0451 \u043e\u043d\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"bash\">apt install cifs-utils<\/code><\/pre>\n<p>\u041c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u0434\u0438\u0441\u043a \u0443 \u043d\u0430\u0441 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d \u0434\u043b\u044f \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043e\u0431\u0440\u0430\u0437\u0430, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445, \u0433\u0434\u0435 \u0434\u0438\u0441\u043a \u0431\u043e\u043b\u0435\u0435 9Gb, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0431\u0435\u0437 \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430. \u0422\u0430\u043a\u0436\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0432\u043e\u0434 \u0432 \u0434\u043e\u043c\u0435\u043d \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043b\u0438\u0431\u043e \u0437\u0430\u043f\u0443\u0441\u043a \u043b\u044e\u0431\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043d\u043e \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u0434\u043b\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0434\u0435\u043b\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<br \/>\u0421\u043e\u0437\u0434\u0430\u0451\u043c\/\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <strong>\/etc<\/strong> \u0444\u0430\u0439\u043b <strong>rc.local<\/strong>  &#8212; \u044d\u0442\u043e \u043a\u043e\u043d\u0444\u0438\u0433 \u0441\u043b\u0443\u0436\u0431\u044b rc-local, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\/\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\/\u044b.<\/p>\n<pre><code class=\"bash\">sudo nano \/etc\/rc.local<\/code><\/pre>\n<p>\u041b\u0438\u0441\u0442\u0438\u043d\u0433 rc.local<\/p>\n<pre><code class=\"bash\">#!\/bin\/sh -e exec \/usr\/sbin\/res1.sh exit 0<\/code><\/pre>\n<p><em>\u0433\u0434\u0435: <\/em><strong><em>#!\/bin\/sh -e<\/em><\/strong><em>   &#8212; \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043d\u0441\u043e\u043b\u0438, <\/em><strong><em>exec \/usr\/sbin\/res1.sh<\/em><\/strong><em> \u2013 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0430 <\/em><a href=\"http:\/\/res1.sh\"><em>res1.sh<\/em><\/a><br \/>\u0427\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>exec<\/strong> \u0441\u044e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u043e\u0442\u0441\u044e\u0434\u0430 \u0443\u0434\u0430\u043b\u044f\u0442\u044c, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 (\u0445\u043e\u0442\u044f \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u043d\u043e \u043d\u0435 \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435).<\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c <strong>chmod +x \/etc\/rc.local<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <strong>\/usr\/sbin\/<\/strong> \u0444\u0430\u0439\u043b, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"http:\/\/res1.sh\">res1.sh<\/a><\/p>\n<pre><code class=\"bash\">sudo nano \/usr\/sbin\/res1.sh<\/code><\/pre>\n<p>\u041b\u0438\u0441\u0442\u0438\u043d\u0433 res1.sh<\/p>\n<pre><code class=\"bash\">echo -e \"resizepart\\n2\\nYes\\n100%\\nresizepart\\n5\\nYes\\n100%\\nquit\" | parted \/dev\/sda ---pretend-input-tty echo 1 > \/sys\/block\/sda\/device\/rescan resize2fs \/dev\/sda5 sed -i '\/res1.sh\/d' \/etc\/rc.local rm -f \/usr\/sbin\/res1.sh reboot<\/code><\/pre>\n<p><em>\u0433\u0434\u0435:<br \/>1 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u043d\u044b\u0439 input \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b parted \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c resizepart 2 \u043d\u0430 100% \u0434\u0438\u0441\u043a\u0430 \u0438 resizepart 5 \u043d\u0430 100% , \u0442.\u0435. \u0440\u0430\u0437\u0434\u0432\u0438\u0433\u0430\u0435\u043c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044e linux \u0434\u043e 100% \u0434\u0438\u0441\u043a\u0430;<br \/>2 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0434\u0438\u0441\u043a\u0435;<br \/>3 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0434\u0438\u0441\u043a\u0430;<br \/>4 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u0437 \u0441\u043b\u0443\u0436\u0431\u044b rc.local;<br \/>5 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 <\/em><a href=\"http:\/\/res1.sh\"><em>res1.sh<\/em><\/a><em>;<br \/>6 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430.<\/em><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c: <strong>chmod +x \/usr\/sbin\/res1.sh<\/strong><\/p>\n<p>\u042f \u0431\u0443\u0434\u0443 \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0441\u043a, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0435\u0433\u043e:<\/p>\n<pre><code class=\"bash\">mkdir \/mnt\/image mount.cifs \/\/\u0438\u043c\u044f_\u0441\u0435\u0440\u0432\u0435\u0440\u0430\/\u0438\u043c\u044f_\u0441\u0435\u0442\u0435\u0432\u043e\u0439_\u043f\u0430\u043f\u043a\u0438 \/mnt\/image -o user=\u0438\u043c\u044f_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f,pass=\u043f\u0430\u0440\u043e\u043b\u044c      <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u043d\u044f\u0442\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u0430 \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443.<\/p>\n<pre><code class=\"bash\">dd if=\/dev\/sda of=\/mnt\/image\/sda.dd.img bs=8M<\/code><\/pre>\n<p>\u0433\u0434\u0435:<br \/><strong>if<\/strong>&#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441 \u043a\u0430\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0441\u043d\u0438\u043c\u0430\u0435\u043c \u043a\u043e\u043f\u0438\u044e;<br \/><strong>of<\/strong> \u2013 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u0443\u0434\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043e\u0431\u0440\u0430\u0437;<br \/><strong>bs<\/strong>&#8212; \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f 8\u041c\u0431.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0443 \u043d\u0430\u0441 \u043b\u0435\u0436\u0438\u0442 \u043e\u0431\u0440\u0430\u0437 <strong>sda.dd.img<\/strong> \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 9Gb, \u0441\u0436\u0438\u043c\u0430\u0435\u043c \u0435\u0433\u043e \u0430\u0440\u0445\u0438\u0432\u0430\u0442\u043e\u0440\u043e\u043c <strong>7z<\/strong>,  \u0432 Zip-\u0444\u0430\u0439\u043b <strong>sda.dd.zip<\/strong>  (\u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0436\u0430\u0442\u0438\u044f \u0443 \u043c\u0435\u043d\u044f \u0444\u0430\u0439\u043b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f 2.14 Gb, \u043f\u0440\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e\u043c \u0441\u0436\u0430\u0442\u0438\u0438 2.22 Gb \u0447\u0442\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e).<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u043f\u043e \u0432\u0441\u0435\u0439 \u0441\u0435\u0442\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. \u0412 \u043f\u0430\u043f\u043a\u0443 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 <strong>SetupLinux.ps1<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432 <strong>Task Sequence<\/strong> \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438.<\/p>\n<pre><code class=\"powershell\">[CmdletBinding()] Param(     [Parameter( Mandatory = $true, Position = 0 )]     [ValidateSet( 'ShowProgressLinuxInstall', 'StartShowProgressLinuxInstall', 'CreatePartition', 'SetVariable', 'ShowProgressLinuxDownload', 'StartShowProgressLinuxDownload' )]     [String]$Worktype )  function Main ( $Worktype ) {     switch ( $Worktype ) {         'CreatePartition'   {             $HardDisk = Get-Disk -Number 0             $HardDiskSize = $HardDisk.Size             if ($HardDiskSize -lt 20Gb) {                 Write-Host \"Small disk, Exit\" , $HardDiskSize                 Exit 1             }             Get-Disk -Number 0 | Where-Object PartitionStyle -EQ 'RAW' | Initialize-Disk             Write-Host \"Initialize Disk complete\"             #Start-Sleep -Seconds 5             Get-Disk -Number 0 | Clear-Disk -RemoveData -RemoveOEM -Confirm:$false             Write-Host \"Clear Disk complete\"             #Start-Sleep -Seconds 5             Get-Disk -Number 0 | Where-Object PartitionStyle -EQ 'RAW' | Initialize-Disk             #Start-Sleep -Seconds 5             Write-Host \"Initialize Disk complete\"             $Offset = $HardDiskSize-5Gb-10Mb             $NewPartition = Get-Disk -Number 0 | New-Partition -Size 5Gb -Offset $Offset -DriveLetter C             #Start-Sleep -Seconds 5             Write-Host \"Create Partition complete\"             Format-Volume -FileSystem NTFS -Force -Partition $NewPartition             #Start-Sleep -Seconds 5             Write-Host \"Format Partition Disk complete\"         }          'StartShowProgressLinuxInstall' {             Start-Process -WindowStyle Hidden -FilePath \"powershell.exe\" -ArgumentList \"-WindowStyle Hidden -NoProfile -nologo -ExecutionPolicy Bypass -File T:\\SetupLinux.ps1 -Worktype ShowProgressLinuxInstall\"             Exit         }          'ShowProgressLinuxInstall' {             $TsProgressUI = New-Object -ComObject Microsoft.SMS.TsProgressUI             $TotalProgressCount = (Get-Item C:\\_SMSTaskSequence\\Packages\\MVI00424\\sda.dd.zip).Length             $CountAttempts = 10             while ($CountAttempts -gt 0) {                 Start-Sleep -Seconds 5                 $CountAttempts = $CountAttempts - 1                 while (Get-WmiObject -Class win32_process -Filter {name = '7z.exe'}) {                     $ProgressCount = (Get-WmiObject -Class win32_process -Filter {name = '7z.exe'}).ReadTransferCount                     $Procent = $ProgressCount \/ $TotalProgressCount * 100                     $TsProgressUI.ShowTSProgress(\"\",\"\",\"\",\"Linux Install ($([math]::Round($Procent))% complete)\",$Procent,100)                     Start-Sleep -Seconds 5                 }             }         }          'StartShowProgressLinuxDownload' {             Start-Process -WindowStyle Hidden -FilePath \"powershell.exe\" -ArgumentList \"-WindowStyle Hidden -NoProfile -nologo -ExecutionPolicy Bypass -File T:\\SetupLinux.ps1 -Worktype ShowProgressLinuxDownload\"             Exit         }                  'ShowProgressLinuxDownload' {             $TsProgressUI = New-Object -ComObject Microsoft.SMS.TsProgressUI             $CountAttempts = 10             while ($CountAttempts -gt 0) {                 Start-Sleep -Seconds 5                 $CountAttempts = $CountAttempts - 1                 while (Get-WmiObject -Class win32_process -Filter {name = 'OSDDownloadContent.exe'}) {                     $ProgressCount = (Get-WmiObject -Class win32_process -Filter {name = 'OSDDownloadContent.exe'}).ReadTransferCount                     $TotalProgressCount = (Get-WmiObject -Class win32_process -Filter {name = 'OSDDownloadContent.exe'}).WriteTransferCount                     if ($ProgressCount -gt 1048576) {                         $Procent = $ProgressCount \/ $TotalProgressCount * 100                         $TsProgressUI.ShowTSProgress(\"\",\"\",\"\",\"Download Linux Package ($([math]::Round($Procent))% complete)\",$Procent,100)                     }                     Start-Sleep -Seconds 5                 }             }         }          'SetVariable' {             Get-Disk -Number 0 | Update-Disk             Get-Disk -Number 0 | Get-Partition | Where-Object -FilterScript {$_.Type -eq \"FAT32\"} | Set-Partition -NewDriveLetter C             $TSEnvironment = New-Object -ComObject Microsoft.SMS.TSEnvironment             $config = [PSCustomObject]@{                 OSDComputerName = $TSEnvironment.Value(\"OSDComputerName\")                 IN_DOMAIN = $TSEnvironment.Value(\"IN_DOMAIN\")             }             Out-File -FilePath C:\\config.json -InputObject ($config | ConvertTo-Json) -Encoding utf8         }       }  }                                                                                                                                                                                                                                   . Main $Worktype <\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 SCCM \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0430\u043a\u0435\u0442.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0ad\/524\/1b4\/0ad5241b45413459f712681f18da0873.png\" alt=\"\u0424\u0430\u0439\u043b\u044b \u043f\u0430\u043a\u0435\u0442\u0430 SCCM\" title=\"\u0424\u0430\u0439\u043b\u044b \u043f\u0430\u043a\u0435\u0442\u0430 SCCM\" width=\"615\" height=\"193\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0ad\/524\/1b4\/0ad5241b45413459f712681f18da0873.png\"\/><figcaption>\u0424\u0430\u0439\u043b\u044b \u043f\u0430\u043a\u0435\u0442\u0430 SCCM<\/figcaption><\/figure>\n<p>\u0412 \u043f\u0430\u043a\u0435\u0442\u0435 \u0443 \u043d\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>7z.dll , 7z.exe   &#8212; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 7z, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0432 (\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432);<\/p>\n<\/li>\n<li>\n<p>ddrelease64.exe \u2013 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 DD \u043f\u043e\u0434 Windows, \u0431\u0435\u0440\u0435\u043c <a href=\"http:\/\/www.chrysocome.net\/download\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>, \u0442\u0430\u043c \u0435\u0441\u0442\u044c 32- \u0438 64-\u0431\u0438\u0442\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f (\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e 64-\u0431\u0438\u0442\u043d\u0443\u044e, \u0442.\u043a. \u0443 \u043c\u0435\u043d\u044f boot \u043e\u0431\u0440\u0430\u0437 x64);<\/p>\n<\/li>\n<li>\n<p>sda.dd.zip \u2013 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u0444\u0430\u0439\u043b \u0430\u0440\u0445\u0438\u0432\u0430;<\/p>\n<\/li>\n<li>\n<p>install.cmd \u2013 \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041b\u0438\u0441\u0442\u0438\u043d\u0433 install.cmd:<\/p>\n<pre><code class=\"powershell\">@echo off cd C:_SMSTaskSequence\\Packages\\XXX00424 7z.exe e -so sda.dd.zip | ddrelease64.exe of=\\?\\Device\\Harddisk0\\Partition0 bs=8M<\/code><\/pre>\n<p>\u0433\u0434\u0435:<br \/><strong>XXX00424<\/strong> \u2013 \u043a\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a;<\/p>\n<p>C 3 \u0441\u0442\u0440\u043e\u0447\u043a\u043e\u0439 \u043f\u043e\u044f\u0441\u043d\u044e, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 7z \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 -so) \u0444\u0430\u0439\u043b sda.dd.zip. \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u043f\u043e\u0442\u043e\u043a \u0443\u0442\u0438\u043b\u0438\u0442\u0435 <strong>ddrelease64.exe<\/strong> \u0438 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0434\u0438\u0441\u043a <strong>\\\\?\\Device\\Harddisk0\\Partition0 \u0431\u043b\u043e\u043a\u043e\u043c 8Mb<\/strong>.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0430\u043a\u0435\u0442 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c \u043d\u0430 Distribution Point\u2019\u044b.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 <strong>Task Sequence<\/strong><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1dd\/7ea\/7c4\/1dd7ea7c4be23af9dee03c5f3f82152d.png\" alt=\"\" title=\"\" width=\"270\" height=\"175\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1dd\/7ea\/7c4\/1dd7ea7c4be23af9dee03c5f3f82152d.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c <strong>Create a new custom task sequence<\/strong>, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0434\u0430\u043b\u0435\u0435.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a91\/904\/ccf\/a91904ccf323281d77071cd75e7c46ad.png\" width=\"468\" height=\"432\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a91\/904\/ccf\/a91904ccf323281d77071cd75e7c46ad.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c 64-\u0431\u0438\u0442\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u0434\u0430\u043b\u0435\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/239\/945\/e61\/239945e6184663a80f5926651bb22c0d.png\" width=\"620\" height=\"574\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/239\/945\/e61\/239945e6184663a80f5926651bb22c0d.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>\u0448\u0430\u0433 1<\/strong>: \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430, \u0435\u0441\u043b\u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0432\u0432\u0435\u0434\u0451\u043d \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c (\u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u00ab\u0434\u0443\u0440\u0430\u043a\u0430\u00bb).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/077\/47e\/fdb\/07747efdbbac16cb09abf45b128f1eb6.png\" alt=\"\u0428\u0430\u0433 1-Properties\" title=\"\u0428\u0430\u0433 1-Properties\" width=\"670\" height=\"564\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/077\/47e\/fdb\/07747efdbbac16cb09abf45b128f1eb6.png\"\/><figcaption>\u0428\u0430\u0433 1-Properties<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/022\/edd\/921\/022edd921b7c14189409ce97bf1fb801.png\" alt=\"\u0428\u0430\u0433 1 - Options\" title=\"\u0428\u0430\u0433 1 - Options\" width=\"681\" height=\"570\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/022\/edd\/921\/022edd921b7c14189409ce97bf1fb801.png\"\/><figcaption>\u0428\u0430\u0433 1 &#8212; Options<\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>\u0448\u0430\u0433 2<\/strong>: \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u043f\u043e\u0434 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c \u043f\u043e \u0432\u0441\u0435\u0439 \u0441\u0435\u0442\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0438\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 <strong>SetupLinux.ps1<\/strong> (\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1b2\/d91\/ed9\/1b2d91ed92571670e3092994484cf8fe.png\" width=\"676\" height=\"572\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1b2\/d91\/ed9\/1b2d91ed92571670e3092994484cf8fe.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>\u0448\u0430\u0433 3<\/strong>: \u0437\u0430\u043f\u0443\u0441\u043a PowerShell \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <strong>-WorkType CreatePartition<\/strong> \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0434\u0438\u0441\u043a\u0430 \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>NTFS<\/strong> \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043e\u0431\u0440\u0430\u0437\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1b9\/a48\/1e3\/1b9a481e3861c323200b52b98891fe25.png\" width=\"672\" height=\"564\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1b9\/a48\/1e3\/1b9a481e3861c323200b52b98891fe25.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>\u0448\u0430\u0433 4<\/strong>: \u0437\u0430\u043f\u0443\u0441\u043a PowerShell \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c  <strong>-WorkType StartShowProgressLinuxDownload<\/strong> \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u0441\u043a\u0430\u0447\u043a\u0438 \u043e\u0431\u0440\u0430\u0437\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6d2\/7aa\/0fe\/6d27aa0fe26fe48e2161b1336e4487a1.png\" width=\"672\" height=\"564\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6d2\/7aa\/0fe\/6d27aa0fe26fe48e2161b1336e4487a1.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>\u0448\u0430\u0433 5<\/strong>: \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 SCCM \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u043a NTFS<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/45d\/deb\/92e\/45ddeb92eceae45d36fd32d36baa9da5.png\" width=\"677\" height=\"570\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/45d\/deb\/92e\/45ddeb92eceae45d36fd32d36baa9da5.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>\u0448\u0430\u0433 6<\/strong>: \u0437\u0430\u043f\u0443\u0441\u043a PowerShell \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c  <strong>-WorkType StartShowProgressLinuxInstall<\/strong> \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043e\u0431\u0440\u0430\u0437\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/712\/85e\/e68\/71285ee682ce6171d4ea1261668acb08.png\" width=\"673\" height=\"566\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/712\/85e\/e68\/71285ee682ce6171d4ea1261668acb08.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>\u0448\u0430\u0433 7<\/strong>: \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 install.cmd \u0438\u0437 \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u043f\u0430\u043a\u0435\u0442\u0430 SCCM.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/54b\/b58\/313\/54bb58313815f5e953dc12f8905abfcd.png\" width=\"676\" height=\"570\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/54b\/b58\/313\/54bb58313815f5e953dc12f8905abfcd.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <strong>\u0448\u0430\u0433 8<\/strong>: \u0437\u0430\u043f\u0443\u0441\u043a PowerShell \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u00a0<strong>-WorkType SetVariable<\/strong>, \u0432 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435, \u043a\u0443\u0434\u0430 \u0443\u0436\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043b\u0438 Linux, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0441 FAT32 \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f <strong>JSON<\/strong> \u0444\u0430\u0439\u043b\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 Task Sequence. \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u043c\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 <strong>OSDComputerName<\/strong>, \u043d\u0443\u0436\u043d\u043e \u043b\u0438 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u041f\u041a Linux \u0432 \u0434\u043e\u043c\u0435\u043d <strong>IN_DOMAIN<\/strong>, \u043b\u0438\u0431\u043e \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u041d\u0430 \u044d\u0442\u0443 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044e \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u041e\u0421 Linux.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/43e\/1a1\/e7e\/43e1a1e7ecfb2880dd3c292a835ea1db.png\" width=\"673\" height=\"569\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/43e\/1a1\/e7e\/43e1a1e7ecfb2880dd3c292a835ea1db.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Deployment \u0434\u043b\u044f Task Sequence, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/244\/a57\/f0a\/244a57f0ad3e666c46a53138e4ff6441.png\" width=\"677\" height=\"602\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/244\/a57\/f0a\/244a57f0ad3e666c46a53138e4ff6441.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u043f\u043e \u0441\u0435\u0442\u0438 <strong>PXE<\/strong> \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 <strong>Linux<\/strong> \u0438\u0437 <strong>SCCM<\/strong> \u0437\u0430 5-7 \u043c\u0438\u043d.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/465\/a75\/3de\/465a753de45a1a941ef1162dd167fc81.png\" width=\"490\" height=\"412\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/465\/a75\/3de\/465a753de45a1a941ef1162dd167fc81.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c95\/5c6\/58e\/c955c658e40814045f6b67b51eeffd88.png\" width=\"489\" height=\"412\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c95\/5c6\/58e\/c955c658e40814045f6b67b51eeffd88.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/26f\/bbf\/0f7\/26fbbf0f7e57e8123c168c5ca88bc636.png\" width=\"491\" height=\"414\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/26f\/bbf\/0f7\/26fbbf0f7e57e8123c168c5ca88bc636.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/38d\/d0b\/348\/38dd0b348eccd8778aff963790e1139e.png\" width=\"459\" height=\"148\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/38d\/d0b\/348\/38dd0b348eccd8778aff963790e1139e.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9b8\/013\/9a2\/9b80139a2ab255c45b157fd5f3fb4ba8.png\" width=\"464\" height=\"151\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9b8\/013\/9a2\/9b80139a2ab255c45b157fd5f3fb4ba8.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a2a\/d3f\/1ec\/a2ad3f1ec0da51c0e153d2aecda811df.png\" width=\"464\" height=\"196\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a2a\/d3f\/1ec\/a2ad3f1ec0da51c0e153d2aecda811df.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b56\/507\/eec\/b56507eec3820e6a7c85483a3bd1fbd7.png\" width=\"465\" height=\"151\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b56\/507\/eec\/b56507eec3820e6a7c85483a3bd1fbd7.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0437\u0430\u043b\u0438\u0432\u043a\u0430 \u041e\u0421 <strong>Linux<\/strong> \u0438 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044f \u0440\u0430\u0437\u0434\u0432\u0438\u043d\u0443\u0442\u0430 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0434\u0438\u0441\u043a\u0430 40gb.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9ec\/995\/db8\/9ec995db8d7079402191816c8c6b250c.png\" width=\"675\" height=\"383\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9ec\/995\/db8\/9ec995db8d7079402191816c8c6b250c.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u0441\u044f, \u0447\u0442\u043e \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0438\u0437 SCCM \u0432 Linux, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044e <strong>\/dev\/sda1<\/strong>, \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439\u00a0 <strong>mount \/dev\/sda1 \/mnt\/cm<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/97e\/5a9\/b51\/97e5a9b51180864c4025ad9a2c39eb27.png\" width=\"669\" height=\"370\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/97e\/5a9\/b51\/97e5a9b51180864c4025ad9a2c39eb27.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 <strong>JSON<\/strong> \u0438\u0437 Task Sequence:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/394\/8bf\/a9b\/3948bfa9befc532b56529f9c529fd632.png\" width=\"624\" height=\"231\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/394\/8bf\/a9b\/3948bfa9befc532b56529f9c529fd632.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0435, \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u043e\u0439 Linux \u0432 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0441\u0435\u0442\u0438.<\/p>\n<p>\u0423\u0434\u0430\u0447\u0438 \u0432\u0430\u043c \u0432 \u0432\u0430\u0448\u0438\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u0445.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/670280\/\"> https:\/\/habr.com\/ru\/articles\/670280\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u041e\u0421 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445 \u0432 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u043c\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c System Center Configuration Manager (SCCM) \u0438 \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u0435\u0441\u043b\u0438 \u0440\u0435\u0447\u044c \u0438\u0434\u0451\u0442 \u043f\u0440\u043e Windows, \u043d\u043e \u0441 Linux \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435 \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u0442.\u043a. \u043d\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 SCCM.<\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, SCCM \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u0433\u0438\u0431\u043a\u0438\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u043e \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u041e\u0421. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f SCCM \u043d\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f, \u0433\u0434\u0435 \u0432\u0441\u0435 \u041f\u041a \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0442\u043e \u0432\u0430\u043c \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0432\u043e\u0442 \u044d\u0442\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/276941\/\">\u0441\u0442\u0430\u0442\u044c\u044f <\/a>\u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u041e\u0421 Linux \u0441 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0438.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u044f SCCM, \u0433\u0434\u0435 \u043c\u043d\u043e\u0433\u043e Distribution Point \u0432 \u043e\u0442\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0445 \u043b\u043e\u043a\u0430\u0446\u0438\u044f\u0445 (\u0441 \u00ab\u043d\u0435\u0431\u044b\u0441\u0442\u0440\u044b\u043c\u0438\u00bb \u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438 \u0441\u0432\u044f\u0437\u0438), \u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430 100 \u041f\u041a \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u0442\u043e \u0441 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u043e. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u0440\u0435\u0448\u0438\u0442\u044c, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0432 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0432 \u0441\u043f\u043e\u0441\u043e\u0431, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 (\u0438\u0434\u0435\u044f \u0432\u0437\u044f\u0442\u0430 \u0438\u0437 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430, \u0441\u043f\u0430\u0441\u0438\u0431\u043e fisher51 \u0438 \u043c\u043e\u0438\u043c \u043a\u043e\u043b\u043b\u0435\u0433\u0430\u043c, \u043a\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u043b).<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u0438\u0441\u043a\u043e\u043c, \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e, \u0442.\u043a. \u043e\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0438\u0442\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 (\u0434\u043b\u044f Xubuntu \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e 9Gb). \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Xubuntu (\u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430), \u0432\u044b\u0431\u0438\u0440\u0430\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u043e\u0432:<\/p>\n<figure class=\"\"><figcaption>\u0420\u0430\u0437\u0431\u0438\u0432\u043a\u0430 \u0434\u0438\u0441\u043a\u0430<\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435, \u0443 \u043d\u0430\u0441 \u043e\u0434\u0438\u043d \u0434\u0438\u0441\u043a 9Gb \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u043e\u0439, \u0433\u0434\u0435 <strong>\/dev\/sda1<\/strong> \u2013 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u0430\u044f \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044f (FAT32), <strong>\/dev\/sda2<\/strong> \u2013 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0438\u0441\u043a, <strong>\/dev\/sda5<\/strong> \u2013 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e Linux (ext4).<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043a\u0430\u043a \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u043a\u0441\u0438 (PAC \u0444\u0430\u0439\u043b), \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0437\u043e\u043d\u0443 \u0438 \u0442.\u0434.<\/p>\n<p>\u041e\u0431\u0440\u0430\u0437 \u043c\u043e\u0436\u043d\u043e \u0441\u043d\u044f\u0442\u044c \u043b\u0438\u0431\u043e \u043d\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0441\u043a, \u043b\u0438\u0431\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0435\u0449\u0451 \u043e\u043d\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"bash\">apt install cifs-utils<\/code><\/pre>\n<p>\u041c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u0434\u0438\u0441\u043a \u0443 \u043d\u0430\u0441 \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d \u0434\u043b\u044f \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043e\u0431\u0440\u0430\u0437\u0430, \u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445, \u0433\u0434\u0435 \u0434\u0438\u0441\u043a \u0431\u043e\u043b\u0435\u0435 9Gb, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0431\u0435\u0437 \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430. \u0422\u0430\u043a\u0436\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0432\u043e\u0434 \u0432 \u0434\u043e\u043c\u0435\u043d \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043b\u0438\u0431\u043e \u0437\u0430\u043f\u0443\u0441\u043a \u043b\u044e\u0431\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043d\u043e \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u0434\u043b\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0434\u0435\u043b\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u0430 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<br \/>\u0421\u043e\u0437\u0434\u0430\u0451\u043c\/\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <strong>\/etc<\/strong> \u0444\u0430\u0439\u043b <strong>rc.local<\/strong>  &#8212; \u044d\u0442\u043e \u043a\u043e\u043d\u0444\u0438\u0433 \u0441\u043b\u0443\u0436\u0431\u044b rc-local, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\/\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\/\u044b.<\/p>\n<pre><code class=\"bash\">sudo nano \/etc\/rc.local<\/code><\/pre>\n<p>\u041b\u0438\u0441\u0442\u0438\u043d\u0433 rc.local<\/p>\n<pre><code class=\"bash\">#!\/bin\/sh -e exec \/usr\/sbin\/res1.sh exit 0<\/code><\/pre>\n<p><em>\u0433\u0434\u0435: <\/em><strong><em>#!\/bin\/sh -e<\/em><\/strong><em>   &#8212; \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043d\u0441\u043e\u043b\u0438, <\/em><strong><em>exec \/usr\/sbin\/res1.sh<\/em><\/strong><em> \u2013 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0430 <\/em><a href=\"http:\/\/res1.sh\"><em>res1.sh<\/em><\/a><br \/>\u0427\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>exec<\/strong> \u0441\u044e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u043e\u0442\u0441\u044e\u0434\u0430 \u0443\u0434\u0430\u043b\u044f\u0442\u044c, \u0438\u043d\u0430\u0447\u0435 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 (\u0445\u043e\u0442\u044f \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u043d\u043e \u043d\u0435 \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435).<\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c <strong>chmod +x \/etc\/rc.local<\/strong><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <strong>\/usr\/sbin\/<\/strong> \u0444\u0430\u0439\u043b, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"http:\/\/res1.sh\">res1.sh<\/a><\/p>\n<pre><code class=\"bash\">sudo nano \/usr\/sbin\/res1.sh<\/code><\/pre>\n<p>\u041b\u0438\u0441\u0442\u0438\u043d\u0433 res1.sh<\/p>\n<pre><code class=\"bash\">echo -e \"resizepart\\n2\\nYes\\n100%\\nresizepart\\n5\\nYes\\n100%\\nquit\" | parted \/dev\/sda ---pretend-input-tty echo 1 > \/sys\/block\/sda\/device\/rescan resize2fs \/dev\/sda5 sed -i '\/res1.sh\/d' \/etc\/rc.local rm -f \/usr\/sbin\/res1.sh reboot<\/code><\/pre>\n<p><em>\u0433\u0434\u0435:<br \/>1 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u043d\u044b\u0439 input \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u044b parted \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c resizepart 2 \u043d\u0430 100% \u0434\u0438\u0441\u043a\u0430 \u0438 resizepart 5 \u043d\u0430 100% , \u0442.\u0435. \u0440\u0430\u0437\u0434\u0432\u0438\u0433\u0430\u0435\u043c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u044e linux \u0434\u043e 100% \u0434\u0438\u0441\u043a\u0430;<br \/>2 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0434\u0438\u0441\u043a\u0435;<br \/>3 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0434\u0438\u0441\u043a\u0430;<br \/>4 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438\u0437 \u0441\u043b\u0443\u0436\u0431\u044b rc.local;<br \/>5 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 <\/em><a href=\"http:\/\/res1.sh\"><em>res1.sh<\/em><\/a><em>;<br \/>6 \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u2013 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430.<\/em><\/p>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c: <strong>chmod +x \/usr\/sbin\/res1.sh<\/strong><\/p>\n<p>\u042f \u0431\u0443\u0434\u0443 \u0441\u043d\u0438\u043c\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0437 \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0441\u043a, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0435\u0433\u043e:<\/p>\n<pre><code class=\"bash\">mkdir \/mnt\/image mount.cifs \/\/\u0438\u043c\u044f_\u0441\u0435\u0440\u0432\u0435\u0440\u0430\/\u0438\u043c\u044f_\u0441\u0435\u0442\u0435\u0432\u043e\u0439_\u043f\u0430\u043f\u043a\u0438 \/mnt\/image -o user=\u0438\u043c\u044f_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f,pass=\u043f\u0430\u0440\u043e\u043b\u044c      <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u043d\u044f\u0442\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u0430 \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443.<\/p>\n<pre><code class=\"bash\">dd if=\/dev\/sda of=\/mnt\/image\/sda.dd.img bs=8M<\/code><\/pre>\n<p>\u0433\u0434\u0435:<br \/><strong>if<\/strong>&#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441 \u043a\u0430\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0441\u043d\u0438\u043c\u0430\u0435\u043c \u043a\u043e\u043f\u0438\u044e;<br \/><strong>of<\/strong> \u2013 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u0443\u0434\u0430 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043e\u0431\u0440\u0430\u0437;<br \/><strong>bs<\/strong>&#8212; \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f 8\u041c\u0431.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0443 \u043d\u0430\u0441 \u043b\u0435\u0436\u0438\u0442 \u043e\u0431\u0440\u0430\u0437 <strong>sda.dd.img<\/strong> \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 9Gb, \u0441\u0436\u0438\u043c\u0430\u0435\u043c \u0435\u0433\u043e \u0430\u0440\u0445\u0438\u0432\u0430\u0442\u043e\u0440\u043e\u043c <strong>7z<\/strong>,  \u0432 Zip-\u0444\u0430\u0439\u043b <strong>sda.dd.zip<\/strong>  (\u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0436\u0430\u0442\u0438\u044f \u0443 \u043c\u0435\u043d\u044f \u0444\u0430\u0439\u043b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f 2.14 Gb, \u043f\u0440\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e\u043c \u0441\u0436\u0430\u0442\u0438\u0438 2.22 Gb \u0447\u0442\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e).<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u043f\u043e \u0432\u0441\u0435\u0439 \u0441\u0435\u0442\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. \u0412 \u043f\u0430\u043f\u043a\u0443 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 <strong>SetupLinux.ps1<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0432 <strong>Task Sequence<\/strong> \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438.<\/p>\n<pre><code class=\"powershell\">[CmdletBinding()] Param(     [Parameter( Mandatory = $true, Position = 0 )]     [ValidateSet( 'ShowProgressLinuxInstall', 'StartShowProgressLinuxInstall', 'CreatePartition', 'SetVariable', 'ShowProgressLinuxDownload', 'StartShowProgressLinuxDownload' )]     [String]$Worktype )  function Main ( $Worktype ) {     switch ( $Worktype ) {         'CreatePartition'   {             $HardDisk = Get-Disk -Number 0             $HardDiskSize = $HardDisk.Size             if ($HardDiskSize -lt 20Gb) {                 Write-Host \"Small disk, Exit\" , $HardDiskSize                 Exit 1             }             Get-Disk -Number 0 | Where-Object PartitionStyle -EQ 'RAW' | Initialize-Disk             Write-Host \"Initialize Disk complete\"             #Start-Sleep -Seconds 5             Get-Disk -Number 0 | Clear-Disk -RemoveData -RemoveOEM -Confirm:$false             Write-Host \"Clear Disk complete\"             #Start-Sleep -Seconds 5             Get-Disk -Number 0 | Where-Object PartitionStyle -EQ 'RAW' | Initialize-Disk             #Start-Sleep -Seconds 5             Write-Host \"Initialize Disk complete\"             $Offset = $HardDiskSize-5Gb-10Mb             $NewPartition = Get-Disk -Number 0 | New-Partition -Size 5Gb -Offset $Offset -DriveLetter C             #Start-Sleep -Seconds 5             Write-Host \"Create Partition complete\"             Format-Volume -FileSystem NTFS -Force -Partition $NewPartition             #Start-Sleep -Seconds 5             Write-Host \"Format Partition Disk complete\"         }          'StartShowProgressLinuxInstall' {             Start-Process -WindowStyle Hidden -FilePath \"powershell.exe\" -ArgumentList \"-WindowStyle Hidden -NoProfile -nologo -ExecutionPolicy Bypass -File T:\\SetupLinux.ps1 -Worktype ShowProgressLinuxInstall\"             Exit         }          'ShowProgressLinuxInstall' {             $TsProgressUI = New-Object -ComObject Microsoft.SMS.TsProgressUI             $TotalProgressCount = (Get-Item C:\\_SMSTaskSequence\\Packages\\MVI00424\\sda.dd.zip).Length             $CountAttempts = 10             while ($CountAttempts -gt 0) {                 Start-Sleep -Seconds 5                 $CountAttempts = $CountAttempts - 1                 while (Get-WmiObject -Class win32_process -Filter {name = '7z.exe'}) {                     $ProgressCount = (Get-WmiObject -Class win32_process -Filter {name = '7z.exe'}).ReadTransferCount                     $Procent = $ProgressCount \/ $TotalProgressCount * 100                     $TsProgressUI.ShowTSProgress(\"\",\"\",\"\",\"Linux Install ($([math]::Round($Procent))% complete)\",$Procent,100)                     Start-Sleep -Seconds 5                 }             }         }          'StartShowProgressLinuxDownload' {             Start-Process -WindowStyle Hidden -FilePath \"powershell.exe\" -ArgumentList \"-WindowStyle Hidden -NoProfile -nologo -ExecutionPolicy Bypass -File T:\\SetupLinux.ps1 -Worktype ShowProgressLinuxDownload\"             Exit         }                  'ShowProgressLinuxDownload' {             $TsProgressUI = New-Object -ComObject Microsoft.SMS.TsProgressUI             $CountAttempts = 10             while ($CountAttempts -gt 0) {                 Start-Sleep -Seconds 5                 $CountAttempts = $CountAttempts - 1                 while (Get-WmiObject -Class win32_process -Filter {name = 'OSDDownloadContent.exe'}) {                     $ProgressCount = (Get-WmiObject -Class win32_process -Filter {name = 'OSDDownloadContent.exe'}).ReadTransferCount                     $TotalProgressCount = (Get-WmiObject -Class win32_process -Filter {name = 'OSDDownloadContent.exe'}).WriteTransferCount                     if ($ProgressCount -gt 1048576) {                         $Procent = $ProgressCount \/ $TotalProgressCount * 100                         $TsProgressUI.ShowTSProgress(\"\",\"\",\"\",\"Download Linux Package ($([math]::Round($Procent))% complete)\",$Procent,100)                     }                     Start-Sleep -Seconds 5                 }             }         }          'SetVariable' {             Get-Disk -Number 0 | Update-Disk             Get-Disk -Number 0 | Get-Partition | Where-Object -FilterScript {$_.Type -eq \"FAT32\"} | Set-Partition -NewDriveLetter C             $TSEnvironment = New-Object -ComObject Microsoft.SMS.TSEnvironment             $config = [PSCustomObject]@{                 OSDComputerName = $TSEnvironment.Value(\"OSDComputerName\")                 IN_DOMAIN = $TSEnvironment.Value(\"IN_DOMAIN\")             }             Out-File -FilePath C:\\config.json -InputObject ($config | ConvertTo-Json) -Encoding utf8         }       }  }                                                                                                                                                                                                                                   . Main $Worktype <\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 SCCM \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0430\u043a\u0435\u0442.<\/p>\n<figure class=\"full-width\"><figcaption>\u0424\u0430\u0439\u043b\u044b \u043f\u0430\u043a\u0435\u0442\u0430 SCCM<\/figcaption><\/figure>\n<p>\u0412 \u043f\u0430\u043a\u0435\u0442\u0435 \u0443 \u043d\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>7z.dll , 7z.exe   &#8212; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 7z, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0432 (\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u044d\u0442\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432);<\/p>\n<\/li>\n<li>\n<p>ddrelease64.exe \u2013 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 DD \u043f\u043e\u0434 Windows, \u0431\u0435\u0440\u0435\u043c <a href=\"http:\/\/www.chrysocome.net\/download\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>, \u0442\u0430\u043c \u0435\u0441\u0442\u044c 32- \u0438 64-\u0431\u0438\u0442\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f (\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e 64-\u0431\u0438\u0442\u043d\u0443\u044e, \u0442.\u043a. \u0443 \u043c\u0435\u043d\u044f boot \u043e\u0431\u0440\u0430\u0437 x64);<\/p>\n<\/li>\n<li>\n<p>sda.dd.zip \u2013 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u0444\u0430\u0439\u043b \u0430\u0440\u0445\u0438\u0432\u0430;<\/p>\n<\/li>\n<li>\n<p>install.cmd \u2013 \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041b\u0438\u0441\u0442\u0438\u043d\u0433 install.cmd:<\/p>\n<pre><code class=\"powershell\">@echo off cd C:_SMSTaskSequence\\Packages\\XXX00424 7z.exe e -so sda.dd.zip | ddrelease64.exe of=\\?\\Device\\Harddisk0\\Partition0 bs=8M<\/code><\/pre>\n<p>\u0433\u0434\u0435:<br \/><strong>XXX00424<\/strong> \u2013 \u043a\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a;<\/p>\n<p>C 3 \u0441\u0442\u0440\u043e\u0447\u043a\u043e\u0439 \u043f\u043e\u044f\u0441\u043d\u044e, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0447\u0435\u0440\u0435\u0437 7z \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 -so) \u0444\u0430\u0439\u043b sda.dd.zip. \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u043f\u043e\u0442\u043e\u043a \u0443\u0442\u0438\u043b\u0438\u0442\u0435 <strong>ddrelease64.exe<\/strong> \u0438 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0434\u0438\u0441\u043a <strong>\\\\?\\Device\\H<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-396518","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/396518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=396518"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/396518\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=396518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=396518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=396518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}